Closed Bug 106934 Opened 24 years ago Closed 23 years ago

TreeWalker Interface appendChild( ) method

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: citymail, Assigned: anthonyd)

References

()

Details

Attachments

(1 file)

There is a bug¡C The <STYLE> tag¡C "BOOK {display:block}" doesn't work¡C
Could you clearly explain what the bug is here? I see the following JS errors running the testcase from a local file: 1) createTreeWalker() fails. 2) As a result tree1 is null. The page at http://home.kimo.com.tw/citybjc/test1/test2/test.xml is served as text/plain, so it's impossible to debug this given the url given.
Reporter could you please describe the bug more precisely and attach a testcase with the correct mimetype so that we can debug it? Thanks in advance.
the source code is here <?xml version="1.0"?> <BJC summary="firstChild( )¤èªk" xmlns:html="http://www.w3.org/1999/xhtml"> <html:title>firstChild.xml</html:title> <html:script type="text/javascript" version="1.5"> var doc1=document.implementation.createDocument("","TEST",null); doc1.load("data.xml"); var tree1; var root1; var node1; function Init() { root1=document.documentElement; tree1=document.createTreeWalker (doc1.documentElement,NodeFilter.SHOW_ELEMENT,null,true); } function Create() { var node1=tree1.firstChild(); root1.appendChild(node1); } </html:script> <html:style type="text/css" media="screen,print"> BOOK {display:block} </html:style> <html:body onload="Init()"></html:body> <html:input type="button" value="createTreeWalker" onclick="Create()"/> </BJC>
Attached file The testcase
bjc, please read comment 1 again. Could you answer my question? What exactly is the bug? Is it the fact that the call to createTreeWalker() fails? Or something else? As it stands this bug is about something (no mention what) not working.
When I used Mozilla 0.9.5 to run the code,the Mozilla was exit¡C But¡Awhen I used Mozilla 0.9.6 to run the code,was ran OK¡C
The bug should be fixed.
bjc, are you saying that there is no longer a bug that you see? If so, please resolve this bug as worksforme...
This bug has fixed.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
per last comment, marking verified
Status: RESOLVED → VERIFIED
Component: DOM: Traversal-Range → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: