|
-
Jan 8th, 2007, 09:15 PM
#1
Thread Starter
Frenzied Member
HTMLStyle Object: How to get The Name, Value Pairs
Hello Everyone! I hadn't been able to come around for a while but now I am back with an interesting question (At least for me )
Anyway, Let's think you are checking each tag in a HTML Document Object and you get its HTMLStyle Object (oTag.Style) and now you want to know which of the styles are set (Example: color:blue; border: 1px solid black)
I haven't found a way to do this without having to check the whole properties contained... Is there a way to iterate through all of them without having to type the whole list and checking every single one of them?
I thought about getting the outerHTML and parsing the style but I would prefer to see if any of you can enlighten me with a clever way.
Putting it short: I want to check which tag objects have in-line styles and which are their names and values. I am using an Internet Explorer application to do the HTML Parsing.
Thank you very much for your time
Last edited by Tec-Nico; Jan 9th, 2007 at 04:08 PM.
We miss you, friend...  Rest in Peace, we will take care of the rest of it.
[vbcode]
On Error Me.Fault = False
[/vbcode]
- Silence is the human way to share ignorance
Tec-Nico
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|