| Index: LayoutTests/dom/html/level1/core/documentinvalidcharacterexceptioncreatepi1.js
|
| diff --git a/LayoutTests/dom/html/level1/core/documentinvalidcharacterexceptioncreatepi1.js b/LayoutTests/dom/html/level1/core/documentinvalidcharacterexceptioncreatepi1.js
|
| index fb6104d602b1888818c93be35aec372823c11b8a..73174bf3a21208c431e6c8b8535d53e5ae855c7a 100644
|
| --- a/LayoutTests/dom/html/level1/core/documentinvalidcharacterexceptioncreatepi1.js
|
| +++ b/LayoutTests/dom/html/level1/core/documentinvalidcharacterexceptioncreatepi1.js
|
| @@ -86,50 +86,23 @@ Creating a processing instruction with an empty target should cause an INVALID_C
|
| */
|
| function documentinvalidcharacterexceptioncreatepi1() {
|
| var success;
|
| - if(checkInitialization(builder, "documentinvalidcharacterexceptioncreatepi1") != null) return;
|
| - var doc;
|
| - var badPI;
|
| -
|
| - var docRef = null;
|
| - if (typeof(this.doc) != 'undefined') {
|
| - docRef = this.doc;
|
| - }
|
| - doc = load(docRef, "doc", "hc_staff");
|
| -
|
| - if(
|
| -
|
| - (builder.contentType == "text/html")
|
| -
|
| - ) {
|
| -
|
| - {
|
| - success = false;
|
| - try {
|
| - badPI = doc.createProcessingInstruction("foo","data");
|
| - }
|
| - catch(ex) {
|
| - success = (typeof(ex.code) != 'undefined' && ex.code == 9);
|
| - }
|
| - assertTrue("throw_NOT_SUPPORTED_ERR",success);
|
| - }
|
| -
|
| - }
|
| -
|
| - else {
|
| -
|
| - {
|
| - success = false;
|
| - try {
|
| - badPI = doc.createProcessingInstruction("","data");
|
| - }
|
| - catch(ex) {
|
| - success = (typeof(ex.code) != 'undefined' && ex.code == 5);
|
| - }
|
| - assertTrue("throw_INVALID_CHARACTER_ERR",success);
|
| - }
|
| + if (checkInitialization(builder, "documentinvalidcharacterexceptioncreatepi1") != null) return;
|
| + var doc;
|
| + var badPI;
|
| +
|
| + var docRef = null;
|
| + if (typeof(this.doc) != 'undefined') {
|
| + docRef = this.doc;
|
| + }
|
| + doc = load(docRef, "doc", "hc_staff");
|
|
|
| - }
|
| -
|
| + success = false;
|
| + try {
|
| + badPI = doc.createProcessingInstruction("","data");
|
| + } catch(ex) {
|
| + success = (typeof(ex.code) != 'undefined' && ex.code == 5);
|
| + }
|
| + assertTrue("throw_INVALID_CHARACTER_ERR",success);
|
| }
|
|
|
|
|
|
|