Closed Bug 1169634 Opened 9 years ago Closed 6 years ago

[Browser API] getMetadata()

Categories

(Core :: DOM: Core & HTML, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: benfrancis, Unassigned)

References

Details

(Keywords: feature)

As a developer I'd like to access any Linked Data [1] associated with the current page. I propose adding a getLinkedData() method to the Browser API which returns a Promise that resolves with a JSON-LD representation of any Linked Data in the current page. See thread on dev-webapi [2] for more background and discussion around which Linked Data formats to support. 1. https://en.wikipedia.org/wiki/Linked_data 2. https://groups.google.com/forum/#!topic/mozilla.dev.webapi/MCUvZ_sUYjc
getLinkedData() -> getStructuredData()
Summary: [Browser API] getLinkedData() → [Browser API] getStructuredData()
I don't think this is needed for Pin the Web in 2.5 after all, I think we can get by with the metachange event (bug 1178484) and linkeddatachange event (bug 1178491). The rest we can implement on the Gaia side.
No longer blocks: pin-the-web
Summary: [Browser API] getStructuredData() → [Browser API] getMetadata()
Browser API has been removed, marking incomplete.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.