Skip to content

Commit

Permalink
Add more details to the makeFocusableForeignObject comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jgoping committed Feb 13, 2022
1 parent 28a5e0e commit 6c87c89
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,8 @@ var focusSummary = {
}

function makeFocusableForeignObject() {
// Returns <foreignObject width="30" height="30">\n <input type="text"/>\n </foreignObject>
// Constructs <foreignObject width="30" height="30"><input type="text"/></foreignObject>
// without raising a Trusted Types violation
var foreignObject = document.createElementNS(
'http://www.w3.org/2000/svg',
'foreignObject'
Expand Down

0 comments on commit 6c87c89

Please sign in to comment.