Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / January 2006

Tip: Looking for answers? Try searching our database.

dom and <link> tag funness

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hansbrix - 05 Jan 2006 03:03 GMT
hello,

i'm writing a small program that traverses a webpage once it's loade
in the browser and alters parts of it. however using the dom facilitie
i'm unable to get past <link> or <style> tags. the .childnodes propert
doesn't report any nodes past here. this is a problem as i really wan
to access the rest of hte page.
if these tags aren't present, the .childnodes property is fine, and
can access it.

if i open up the webpage in vs then it reports "the active schema doe
not support the element 'link'", however that doesn't really shed an
light as to why i can't get any further.

if you need any further info, just ask.

:)

th

--
hansbri
Dmytro Lapshyn [MVP] - 06 Jan 2006 10:49 GMT
Hi,

As far as I remember the contents of these tags is not HTML but rather CSS.
I am not sure the DOM engine can parse CSS and provide it as an object
model.
No ready asnwer at this point, though, for which I apologize.

> hello,
>
[quoted text clipped - 15 lines]
>
> thx
Lau Lei Cheong - 07 Jan 2006 02:08 GMT
As far as I remember, the IE and Firefox will both arrange any <link> tag
with CSS files into document.stylesheets array.

So I think what the OP said is quite out of my expectation... but well,
<link> tag by spec. should be in <head> tag, not in <body> tag... So that
may explain why although it may render correctly, the Object Model will
behave a bit strange that way...

For <style> tag, I have no idea whether we can inline or not according to
specification, maybe some experts can tell...

"Dmytro Lapshyn [MVP]" <x-code@no-spam-please.hotpop.com> ¼¶¼g©ó¶l¥ó·s»D:eCt3c7qEGHA.3004@TK2MSFTNGP15.phx.gbl...
> Hi,
>
[quoted text clipped - 22 lines]
>>
>> thx

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.