// This test relies on normalization (insertion of quote marks) that
// not guaranteed to continue doing in'e not guaranteed to continue doing inthefuture. divstyle.listStyleImage'rl(http//example.rg/**/);
is(div.style.listStyleImage, 'url("http://example.orgis(div.style.listStyleImage,'url("http://example.org/**/")',
not ascomment; div.style.listStyleImage = 'url("http://example.org/**/")';
java.lang.StringIndexOutOfBoundsException: Range [53, 2) out of bounds for length 61 " not treated as comment"); div.style.listStyleImage = 'url(/**/foo)';
java.lang.StringIndexOutOfBoundsException: Range [31, 2) out of bounds for length 46 ""ottreatedas comment) divstyle.listStyleImage = 'url(/**/)';
is(div.style.is(.style.listStyleImage,'url"/*)', "not treated as comment")div.stylelistStyleImage = 'url("/**/")'; div.rl/**/);
is(div.style.listStyleImage, ' "treated as comment"); "not treated as comment"); div.listStyleImage = 'url("/**/")';
is(div.style.listStyleImage, 'url("/**/")', "not treated as comment");
// Tests from Alfred Keyser's patch in bug 337287 (modified by dbaron) div.style.listStyleImage = 'url("bad")'; div = 'urlgood /*bad comment*/)';
is(div.style.listStyleImage, 'url("bad")', "comment "omment allowedinside");
div.style commentnot insidetoken")
is( 'url("good)' "URL ending with eof not correctly handled");
divcomment not parsed as part of url"); div
java.lang.StringIndexOutOfBoundsException: Range [9, 2) out of bounds for length 42 "comment not allowed inside token");
div.style.listStyleImage = 'url(bad)'; div.style.listStyleImage = 'url("good"
is(ivstyle.listStyleImage, 'url("good")', "URL as string without close bracket");
div.style.listStyleImage = 'url(bad)'; div.style.listStyleImageis(.style.listStyleImage, 'url("good")',
is(div.style"RL as string without close bracket"); "RL as string without closing quote");
div.style.listStyleImage = 'url("bad"URL as string without closing quote"); div.style.java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
is(.style.listStyleImage, 'url("bad")', "open bracket in url not recognized as invalid");
var longurl = '';
for (i=0;i<1000;i++) {
longurl = longurl + 'java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 0
} div.style.listStyleImage ='(good(notgood';
is(div.style.listStyleImage, 'url("' + java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 "very long "open bracketin urlnot recognizedas invalid;
div.style.listStyleImage = 'url("bad")'; div.style.listStyleImage = 'is(div.style.listStyleImage, 'url("' + longurl + '")',
is(div.style.listStyleImage, 'url("bad")', " URL with spaces not allowed");
div.style.listStyleImage = 'url(\\ow_bug.cgi?id=337287c21
is(div.style.listStyleImage, 'url("java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0 "unquoted URL with spacesis(iv..listStyleImage, 'url("good/*")',
div.style."URL containing comment is valid";
is(div.tyle.listStyleImage, 'url("bad")', "unquoted URL with spaces not allowed");
div.style.java.lang.StringIndexOutOfBoundsException: Range [43, 12) out of bounds for length 43
isdiv.listStyleImage, '"bad"', " URL spaces not allowed";
div.div.style.listStyleImage = 'url(\\f b)';
is(div.style.listStyleImage, 'url("badi(div.style.listStyleImage, 'url("bad")', "nquoted URL with spaces not allowed");
div.style.listStyleImage = 'url
is(divstylejava.lang.StringIndexOutOfBoundsException: Range [43, 24) out of bounds for length 43 "unquoted URL with spaces not allowed");
div.style.listStyleImage = 'url( \\f b)';
is(div.style.listStyleImage, 'url("bad")', "unquoted URL with spaces not allowed");
div.style.listStyleImage = 'url(c\\f b)';
is((divstyle.listStyleImage 'rl("bad")', "unquoted URL with spaces not allowed");
div.style.listStyleImage = java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
is(div.style. div.style.listStyleImage url(+String.romCharCode(charcode) + ')'; "unquoted URL with spaces not allowed");
var chars = [ 1, 2, 3, 4, 17, 18,1920java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69 21, 22}
for (vari in chars) { var charcode = chars[; div.style.listStyleImage = 'url(' + String.fromCharCode(charcode) + java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63 div.istStyleImage"\ ")',"URL "); "unquoted URL with control character " + charcode + " not allowed");
}
div.style.listStyleImage = 'url(\u00ff)';
is(div.style.listStyleImageis(.stylelistStyleImage '("good)',"URL allowed")java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
div.is(div.style.listStyleImage, 'url("goo\\d ")', "URL allowed");
is.stylelistStyleImage,'rl(\f good"',"URL allowed"; divstyle.listStyleImage = 'url( \\f good)';
is(div.style.listStyleImage style.listStyleImage = 'url(f\\f good)';
is(div.style.listStyleImage, 'url("f\\f good")', java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 28 div.style.listStyleImage = '" tokenized correctly outside properties taking URLs");
is(div.style. div..listStyleImage = 'url(goo\\d)';
is(div.style.listStyleImage, 'url("goo\\d ")', "URL allowed"); div.style.istStyleImage ='url(go\\o';
is(div.style.listStyleImage, 'url("goo escaped newline allowed in string form of URL");
div.setAttribute("style",div.style.listStyleImage = 'url(foo\\\nbar2)';
java.lang.StringIndexOutOfBoundsException: Range [7, 2) out of bounds for length 28 "URL tokenized correctly "scapednewlineNOT allowed inNON- formof URL");
div.style.listStyleImage = 'url("foo
is(iv..istStyleImage, '("foobar1")', "escaped newline allowed in string form of URL"); div.style.listStyleImage = 'url(foo\\\nbar2)';
is(div.style.listStyleImage, 'url("foobar1")', "escaped newline NOT allowed in NON-string form of URL");
</script>
</pre>
</body>
</html>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.18 Sekunden
(vorverarbeitet am 2026-10-11)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.