Skip to content

Commit

Permalink
Log a console message when attempt to use module script in XHTML docu…
Browse files Browse the repository at this point in the history
…ment

Blink currently lacks module script support on XHTML document.
Notify this issue to web developers via console message instead of silently failing.

Bug: 717643
Change-Id: I6307df123aa12989a6982a3d4f099496febe997c
Reviewed-on: https://chromium-review.googlesource.com/567782
Commit-Queue: Kouhei Ueno <[email protected]>
Cr-Commit-Position: refs/heads/master@{#485825}
WPT-Export-Revision: 273234a86c49e0f5a53257072cef61f66cb5fe9c
  • Loading branch information
nyaxt authored and chromium-wpt-export-bot committed Jul 13, 2017
1 parent 04da785 commit 74e8746
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script type="module">
window.evaluated_module_script = true;
</script>
<script>
test(() => assert_true(window.evaluated_module_script), "module script in XHTML documents should be evaluated.");
</script>
</body>
</html>

0 comments on commit 74e8746

Please sign in to comment.