Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: LayoutTests/fast/dom/HTMLTemplateElement/no-form-association.html

Issue 17033002: HTML parser should not associate elements inside templates with forms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTemplateElement/no-form-association-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <body>
3 <form style="display:none">
4 <template id="one"><input></template>
5 </form>
6 <template id="two"><form><template><input></template></form></template>
7 <script src="../../js/resources/js-test-pre.js"></script>
8 <script>
9 description("Form control elements inside templates should not be associated wit h forms outside the template");
10
11 debug('Form in document, input inside template:');
12 var form = document.querySelector('form');
13 var input = document.querySelector('#one').content.querySelector('input');
14 shouldBe('form.length', '0');
15 shouldBeNull('input.form');
16
17 debug('\nForm in template, input in sub-template:');
18 form = document.querySelector('#two').content.querySelector('form');
19 input = document.querySelector('#two').content.querySelector('template').content .querySelector('input');
20 shouldBe('form.length', '0');
21 shouldBeNull('input.form');
22 </script>
23 <script src="../../js/resources/js-test-post.js"></script>
24 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/HTMLTemplateElement/no-form-association-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698