-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
dont use properties when setting <svg> element attributes
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// this looks like another JSDOM quirk — svg.className = 'foo' behaves | ||
// differently from browsers. So this test succeeds even when it should fail | ||
export default { | ||
html: `<svg class='foo'></svg>`, | ||
|
||
test ( assert, component, target ) { | ||
const svg = target.querySelector( 'svg' ); | ||
|
||
assert.equal( svg.namespaceURI, 'http://www.w3.org/2000/svg' ); | ||
assert.equal( svg.getAttribute( 'class' ), 'foo' ); | ||
|
||
component.teardown(); | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<svg class='foo'></svg> |