| Index: LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5.js | 
| diff --git a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5.js b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5.js | 
| index a9737ede0db4e9bf4fe753b8e5106158e458f9f4..12ad00bf84f86a69f2056291369aa0f5c796a97c 100644 | 
| --- a/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5.js | 
| +++ b/LayoutTests/dom/xhtml/level1/core/hc_attrinsertbefore5.js | 
| @@ -1,17 +1,14 @@ | 
| - | 
| /* | 
| -Copyright © 2001-2004 World Wide Web Consortium, | 
| -(Massachusetts Institute of Technology, European Research Consortium | 
| -for Informatics and Mathematics, Keio University). All | 
| -Rights Reserved. This work is distributed under the W3C® Software License [1] in the | 
| -hope that it will be useful, but WITHOUT ANY WARRANTY; without even | 
| -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 
| +Copyright © 2001-2004 World Wide Web Consortium, | 
| +(Massachusetts Institute of Technology, European Research Consortium | 
| +for Informatics and Mathematics, Keio University). All | 
| +Rights Reserved. This work is distributed under the W3C® Software License [1] in the | 
| +hope that it will be useful, but WITHOUT ANY WARRANTY; without even | 
| +the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 
|  | 
| [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 | 
| */ | 
|  | 
| - | 
| - | 
| /** | 
| *  Gets URI that identifies the test. | 
| *  @return uri identifier of test | 
| @@ -42,26 +39,24 @@ function setUpPage() { | 
| checkFeature("XML", null); | 
|  | 
| docsLoaded = 0; | 
| - | 
| + | 
| var docRef = null; | 
| if (typeof(this.doc) != 'undefined') { | 
| docRef = this.doc; | 
| } | 
| docsLoaded += preload(docRef, "doc", "hc_staff"); | 
| - | 
| + | 
| if (docsLoaded == 1) { | 
| setUpPageStatus = 'complete'; | 
| } | 
| } catch(ex) { | 
| -    	catchInitializationError(builder, ex); | 
| +        catchInitializationError(builder, ex); | 
| setUpPageStatus = 'complete'; | 
| } | 
| } | 
|  | 
| - | 
| - | 
| // | 
| -//   This method is called on the completion of | 
| +//   This method is called on the completion of | 
| //      each asychronous load started in setUpTests. | 
| // | 
| //   When every synchronous loaded document has completed, | 
| @@ -73,9 +68,8 @@ function loadComplete() { | 
| } | 
| } | 
|  | 
| - | 
| /** | 
| -* | 
| +* | 
| Attempt to append a CDATASection to an attribute which should result | 
| in a HIERARCHY_REQUEST_ERR. | 
|  | 
| @@ -96,7 +90,6 @@ function hc_attrinsertbefore5() { | 
| var retval; | 
| var refChild = null; | 
|  | 
| - | 
| var docRef = null; | 
| if (typeof(this.doc) != 'undefined') { | 
| docRef = this.doc; | 
| @@ -107,46 +100,43 @@ function hc_attrinsertbefore5() { | 
| attributes = testNode.attributes; | 
|  | 
| titleAttr = attributes.getNamedItem("title"); | 
| - | 
| -	if( | 
| - | 
| -	(builder.contentType == "text/html") | 
| - | 
| -	) { | 
| - | 
| -	{ | 
| -		success = false; | 
| -		try { | 
| + | 
| +    if( | 
| + | 
| +    (builder.contentType == "text/html") | 
| + | 
| +    ) { | 
| + | 
| +    { | 
| +        success = false; | 
| +        try { | 
| textNode = doc.createCDATASection("terday"); | 
| } | 
| -		catch(ex) { | 
| +        catch(ex) { | 
| success = (typeof(ex.code) != 'undefined' && ex.code == 9); | 
| -		} | 
| -		assertTrue("throw_NOT_SUPPORTED_ERR",success); | 
| -	} | 
| - | 
| -	} | 
| - | 
| -		else { | 
| -			textNode = doc.createCDATASection("terday"); | 
| - | 
| -	{ | 
| -		success = false; | 
| -		try { | 
| -            retval = titleAttr.insertBefore(textNode,refChild); | 
| } | 
| -		catch(ex) { | 
| -      success = (typeof(ex.code) != 'undefined' && ex.code == 3); | 
| -		} | 
| -		assertTrue("throw_HIERARCHY_REQUEST_ERR",success); | 
| -	} | 
| +        assertTrue("throw_NOT_SUPPORTED_ERR",success); | 
| +    } | 
|  | 
| -		} | 
| - | 
| -} | 
| +    } | 
|  | 
| +        else { | 
| +            textNode = doc.createCDATASection("terday"); | 
|  | 
| +    { | 
| +        success = false; | 
| +        try { | 
| +            retval = titleAttr.insertBefore(textNode,refChild); | 
| +        } | 
| +        catch(ex) { | 
| +      success = (typeof(ex.code) != 'undefined' && ex.code == 3); | 
| +        } | 
| +        assertTrue("throw_HIERARCHY_REQUEST_ERR",success); | 
| +    } | 
|  | 
| +        } | 
| + | 
| +} | 
|  | 
| function runTest() { | 
| hc_attrinsertbefore5(); | 
|  |