How to parse CSS of a HTML document using MSHTML ?
-
Is it possible to parse the CSS of an HTML document using MSHTML ? I need to get the css style assigned to any element from the html. When the style is written inside the element's tag, then its structure is contained in "style" attribute of that element (e.g.: node.getAttribute("style") contains the structure of the css style of the 'node' element). However if the element refers to an outside CSS class (e.g. - refers to class main) then the mshtml control doesn't seem to offer the possibility to parse the "main" style like in the above case. Can anybody help me ? Thanks.
-
Is it possible to parse the CSS of an HTML document using MSHTML ? I need to get the css style assigned to any element from the html. When the style is written inside the element's tag, then its structure is contained in "style" attribute of that element (e.g.: node.getAttribute("style") contains the structure of the css style of the 'node' element). However if the element refers to an outside CSS class (e.g. - refers to class main) then the mshtml control doesn't seem to offer the possibility to parse the "main" style like in the above case. Can anybody help me ? Thanks.
Check out the
currentStyle
property.---- Scripts i've known... CPhog 0.9.9 - make CP better. Forum Bookmark 0.2.5 - bookmark forum posts on Pensieve Print forum 0.1.1 - printer-friendly forums
-
Check out the
currentStyle
property.---- Scripts i've known... CPhog 0.9.9 - make CP better. Forum Bookmark 0.2.5 - bookmark forum posts on Pensieve Print forum 0.1.1 - printer-friendly forums