diff --git a/html/semantics/forms/the-option-element/option-text-recurse.html b/html/semantics/forms/the-option-element/option-text-recurse.html
index 46baa8e1ce5bbe..cf854f5260bb2a 100644
--- a/html/semantics/forms/the-option-element/option-text-recurse.html
+++ b/html/semantics/forms/the-option-element/option-text-recurse.html
@@ -74,4 +74,19 @@
option.appendChild(document.createTextNode("text"));
assert_equals(option.text, "text");
}, "option.text should work if the option is in a MathML script element");
+
+test(function() {
+ var option = document.createElement("option");
+ option.appendChild(document.createTextNode("te"));
+ option.appendChild(document.createComment("comment"));
+ option.appendChild(document.createTextNode("xt"));
+ assert_equals(option.text, "text");
+}, "option.text should ignore comment children");
+test(function() {
+ var option = document.createElement("option");
+ option.appendChild(document.createTextNode("te"));
+ option.appendChild(document.createProcessingInstruction("target", "data"));
+ option.appendChild(document.createTextNode("xt"));
+ assert_equals(option.text, "text");
+}, "option.text should ignore PI children");