Make embedded (X)HTML or SVG documents in <object> accessible
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 718
- Forks
- 228
- PR merge metrics
- No merged PRs in 30d
Description
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29792
comfreek:
It is currently not possible to access objects embedded in tags:
<object data="file.svg" type="image/svg+xml"></object> <object data="file.html" type="text/html"></object> <object data="file.xhtml" type="application/xml+xhtml"></object>First, none of the locator strategies are able to "deep-select" elements originating from objectElement.contentDocument.
Second, bypassing the selection problem by executing a custom JS script in order to return the nested elements results in "stale element reference" error upon usage of the acquired reference. This could be solved if a switch to an object's contentDocument context was possible.
My use case in my application for embedding an SVG via is that I can quickly replace it by setting the data URI while maintaining access to its contents via contentDocument.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the linked W3C bug first, then compare its request with the WebDriver specification's handling of objectElement.contentDocument. No repository file or test is named; completion would require an agreed mechanism for selecting elements in embedded SVG, HTML, and XHTML documents while avoiding stale references.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- testing, web-dev
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100