Add tests/comment for hiliteColor bug
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Thu, 18 Aug 2011 12:09:25 -0600
changeset 539 af48a4b15739
parent 538 a2d2ada74d4e
child 540 11914cdcaec0
Add tests/comment for hiliteColor bug
editing.html
source.html
tests.js
--- a/editing.html	Thu Aug 18 11:31:39 2011 -0600
+++ b/editing.html	Thu Aug 18 12:09:25 2011 -0600
@@ -65,7 +65,7 @@
 <body class=draft>
 <div class=head id=head>
 <h1>HTML Editing APIs</h1>
-<h2 class="no-num no-toc" id=work-in-progress-&mdash;-last-update-17-august-2011>Work in Progress &mdash; Last Update 17 August 2011</h2>
+<h2 class="no-num no-toc" id=work-in-progress-&mdash;-last-update-18-august-2011>Work in Progress &mdash; Last Update 18 August 2011</h2>
 <dl>
  <dt>Editor
  <dd>Aryeh Gregor &lt;<a href=mailto:ayg@aryeh.name>ayg@aryeh.name</a>&gt;
@@ -3443,6 +3443,9 @@
 sense; see the comment for backColor.
 
 <p>For color parsing, see the comment for foreColor.
+
+<p>See <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=13829">bug
+13829</a>.
 </div>
 
 <p><a href=#action>Action</a>:
--- a/source.html	Thu Aug 18 11:31:39 2011 -0600
+++ b/source.html	Thu Aug 18 12:09:25 2011 -0600
@@ -3450,6 +3450,9 @@
 sense; see the comment for backColor.
 
 <p>For color parsing, see the comment for foreColor.
+
+<p>See <a href=http://www.w3.org/Bugs/Public/show_bug.cgi?id=13829>bug
+13829</a>.
 </div>
 
 <p><span>Action</span>:
--- a/tests.js	Thu Aug 18 11:31:39 2011 -0600
+++ b/tests.js	Thu Aug 18 12:09:25 2011 -0600
@@ -767,6 +767,11 @@
 		'<font size=4>fo[o</font><span style=font-size:large>b]ar</span>',
 		'<font size=5>fo[o</font><span style=font-size:x-large>b]ar</span>',
 		'<font size=6>fo[o</font><span style=font-size:xx-large>b]ar</span>',
+
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13829
+		["6", '<span style=background-color:aqua>[foo]</span>'],
+		["6", '<span style=background-color:aqua>foo[bar]baz</span>'],
+		["6", '[foo<span style=background-color:aqua>bar</span>baz]'],
 	],
 	//@}
 	forecolor: [
@@ -1451,6 +1456,14 @@
 		'<span style=background-color:tan>fo[o</span><span style=background-color:yellow>b]ar</span>',
 		'<span style=background-color:tan>fo[o</span><span style=background-color:tan>b]ar</span>',
 		'<span style=background-color:tan>fo[o<span style=background-color:transparent>b]ar</span></span>',
+
+		// http://www.w3.org/Bugs/Public/show_bug.cgi?id=13829
+		'<font size=6>[foo]</font>',
+		'<span style=font-size:xx-large>[foo]</span>',
+		'<font size=6>foo[bar]baz</font>',
+		'<span style=font-size:xx-large>foo[bar]baz</span>',
+		'[foo<font size=6>bar</font>baz]',
+		'[foo<span style=font-size:xx-large>bar</span>baz]',
 	],
 	//@}
 	indent: [