On Oct 11, 12:42 am, Sebo <[email protected]> wrote:
> > But the page is not being rendered as it should. Text appears without any
> > formatting; text contained in an element is not indicating that it is part
> > of an
> > element.
>
> Currently I am stuck on what exactly I should have a look at. I am not
> seeing the main parts of the page, because most of the nodes are having 
> display:
> none; set.
> If you can provide step by step instructions what to do and an exact
> description of what you see and what you would expect to see I can probably
> help you.

Actually I solved the problem.

The problem was related to using document.createElementNS() when I
should have been using document.createElement() for parsing HTML
markup.  It was that simple.

My HTML parsing function handles stylesheets (internal or STYLE
elments, or external or LINK elements) differently, and it also
handles SCRIPT elements differently, of course.  The attribute values
of inline event handlers are passed to a Function constructor.  In
general, DOM node styling is done with properties under the style
property, and not by using setAttribute() calls.  I keep all my
functions for parsing of markup strings in files I have named dom1.js
and css.js.

-- 
You received this message because you are subscribed to the Google Groups 
"Firebug" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/firebug?hl=en.

Reply via email to