Provide support for SVG foreignObject by adding xhtml namespace#6192
Provide support for SVG foreignObject by adding xhtml namespace#6192gionkunz wants to merge 1 commit intoangular:masterfrom gionkunz:svg-foreign-object
Conversation
|
Looks good, although not really standards compliant. The svg docs give this example for using html in svg: But let's keep this as is for now so that we have at least a working path on which we can improve later if needed... |
|
Well the specification is not quite clear about the contents. Using a body as a root element within the foreignObject is just an example. They are talking about document fragments so I'd assume that we can refer to https://www.w3.org/2003/01/dom2-javadoc/org/w3c/dom/DocumentFragment.html as what is a valid document fragment. I'm using foreignObjects within my library https://github.com/gionkunz/chartist-js and so far all browsers are totally fine with foreignObjects containing no body element. Somehow we'd need to exclude this test for IE however, as they don't support foreignObject at all. |
|
Merging PR #6192 on behalf of @btford to branch presubmit-btford-pr-6192. |
|
This change needed to be reverted. We can probably merge this again independently, or once #6363 is resolved |
|
Merging PR #6192 on behalf of @vsavkin to branch presubmit-vsavkin-pr-6192. |
|
Merging PR #6192 on behalf of @vsavkin to branch presubmit-vsavkin-pr-6192. |
|
Breaks google3. @tbosch - Here is the link for the failure - https://test.corp.google.com/ui#cl=114446968 Please re-add the merge label once this is resolved. |
|
Sorry, don't have time to work on this right now... |
|
Hi @gionkunz, sorry for the long delay in getting this in, totally our fault. Can you try to rebase to the laste master? If we don't get an update in a week, we will close this PR as obsolete. |
|
Sure, will do. Cheers |
|
@gionkunz Any update on the rebase or should we just abandon this PR? |
|
@mhevery Sorry I got a bit sidetracked from this issue. Please leave it open. I'll schedule some time for this next week. Cheers |
|
@gionkunz any update ? |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This PR enables the use of elements with HTML namespace within SVG foreignObjects.