Index: tools/dom/src/Validators.dart |
diff --git a/tools/dom/src/Validators.dart b/tools/dom/src/Validators.dart |
index 5154a9d4e4e05c99d86ae4b4cf44f32c7b096de7..95024c6f37824aa3a5d1656387e57c1396894d24 100644 |
--- a/tools/dom/src/Validators.dart |
+++ b/tools/dom/src/Validators.dart |
@@ -111,7 +111,7 @@ class _SameOriginUriPolicy implements UriPolicy { |
_hiddenAnchor.protocol == _loc.protocol) || |
(_hiddenAnchor.hostname == '' && |
_hiddenAnchor.port == '' && |
- _hiddenAnchor.protocol == ':'); |
+ (_hiddenAnchor.protocol == ':' || _hiddenAnchor.protocol == '')); |
} |
} |