Closed Bug 321544 Opened 19 years ago Closed 19 years ago

can't convert XML(document) to XML

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 270553

People

(Reporter: BijuMailList, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051219 Firefox/1.6a1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20051219 Firefox/1.6a1 createTable() is a function copied from section "10.3.2 ToXML Applied to a W3C XML Information Item" in http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-357.pdf if I execute createTable() I get "can't convert XML(document) to XML" error function createTable() { var doc = XML(document); var mytablebody = doc..body.TABLE.TBODY; for (var j = 0; j < 2; j++) { mytablebody.TR[j] = ""; for (var i = 0; i < 2; i++) { mytablebody.TR[j].TD[i] = "cell is row " + j + ", column " + i; } } doc..body.TABLE[@border] = 2; } Reproducible: Always Steps to Reproduce: run above javascript Actual Results: can't convert XML(document) to XML Expected Results: no error
*** This bug has been marked as a duplicate of 270553 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.