Hi there javascript fiends
If you had to return all 'font-size'-properties from a stylesheet, how
would you do it?
Or in more generic fashion, what kind of solution would you code for
fetching all instances of a particular property in a stylesheet?
I'm thinking one has to iterate through the document.style tree, and if a
property is found, its added into a result-array...
If you had to return all 'font-size'-properties from a stylesheet, how
would you do it?
Or in more generic fashion, what kind of solution would you code for
fetching all instances of a particular property in a stylesheet?
I'm thinking one has to iterate through the document.style tree, and if a
property is found, its added into a result-array...
Comment