Bug 1864186 - [devtools] Add links for invoketarget attributes. r=devtools-reviewers,bomsy.

Differential Revision: https://phabricator.services.mozilla.com/D193316
This commit is contained in:
Nicolas Chevobbe 2023-11-16 15:52:36 +00:00
parent 8dd921d813
commit 55f9ff33e3
3 changed files with 12 additions and 0 deletions

View file

@ -141,6 +141,15 @@ const TEST_DATA = [
},
],
},
{
selector: "#invoker",
attributes: [
{
attributeName: "invoketarget",
links: [{ type: "idref", value: "invokee" }],
},
],
},
];
requestLongerTimeout(2);

View file

@ -37,6 +37,8 @@
<menuitem label="custom menu 3"></menuitem>
</menu>
<video controls poster="doc_markup_tooltip.png" src="code-rush.mp4"></video>
<div id="invokee"></div>
<button id="invoker" invoketarget="invokee">Invoke</button>
<script type="text/javascript" src="lib_jquery_1.0.js"></script>
</body>
</html>

View file

@ -159,6 +159,7 @@ const ATTRIBUTE_TYPES = new Map([
menuitem: { namespaceURI: HTML_NS, type: TYPE_URI },
},
],
["invoketarget", { WILDCARD: { namespaceURI: HTML_NS, type: TYPE_IDREF } }],
["list", { input: { namespaceURI: HTML_NS, type: TYPE_IDREF } }],
[
"longdesc",