- Refactoring (minor): Simplify (empty string is falsey)
- Refactoring (minor): Consistent HTML indenting/no-namespacing and title/icon use - Testing: Add browser bug test with reference to issue
This commit is contained in:
21
test/browser-bugs/removeItem-bug.html
Normal file
21
test/browser-bugs/removeItem-bug.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>removeItem and setAttribute test</title>
|
||||
<link rel="icon" type="image/png" href="../editor/images/logo.png"/>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
var elem = document.createElementNS('http://www.w3.org/2000/svg', 'rect');
|
||||
elem.setAttribute('transform', 'matrix(1,0,0,1,0,0)');
|
||||
elem.transform.baseVal.removeItem(0);
|
||||
elem.removeAttribute('transform');
|
||||
console.log(elem.hasAttribute('transform'));
|
||||
</script>
|
||||
Issue:
|
||||
<a href="https://bugs.chromium.org/p/chromium/issues/detail?id=843901">
|
||||
Chromium 843901
|
||||
</a>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user