Im hoping someone can help me understand why this works?
Requirement:
Navigate DOM through javascript to perform DHTML actions.
Issue:
GIANT html document, up to 4MB in size, thousands and thousands of
table rows.
What didn't work:
1) Tried to figure out if I could load the HTML into a XML parser
through javascript. The I could use a XPath statement to quickly
navigate to the nodes of interest. Couldn't find a way to do this, is
it even possible? I would be interested in knowing...
2) Tried custom tags, such as <mytag> to logically divide up the HTML.
I was able to get a reference to these tags through the DOM, but
whenever I tried to get the custom tag's child nodes I would always
get nothing. Why is this?
What did work:
Adding "xmlns=somethin g" to the "html" tag, and then using
<something:myta g> for my custom tags.
Does anyone know why this worked when normal custom tags didn't work?
I'm glad it works, but I would be interested in knowing why it works
:) .
Requirement:
Navigate DOM through javascript to perform DHTML actions.
Issue:
GIANT html document, up to 4MB in size, thousands and thousands of
table rows.
What didn't work:
1) Tried to figure out if I could load the HTML into a XML parser
through javascript. The I could use a XPath statement to quickly
navigate to the nodes of interest. Couldn't find a way to do this, is
it even possible? I would be interested in knowing...
2) Tried custom tags, such as <mytag> to logically divide up the HTML.
I was able to get a reference to these tags through the DOM, but
whenever I tried to get the custom tag's child nodes I would always
get nothing. Why is this?
What did work:
Adding "xmlns=somethin g" to the "html" tag, and then using
<something:myta g> for my custom tags.
Does anyone know why this worked when normal custom tags didn't work?
I'm glad it works, but I would be interested in knowing why it works
:) .
Comment