forked from mirrors/gecko-dev
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:
parent
8dd921d813
commit
55f9ff33e3
3 changed files with 12 additions and 0 deletions
|
|
@ -141,6 +141,15 @@ const TEST_DATA = [
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
selector: "#invoker",
|
||||
attributes: [
|
||||
{
|
||||
attributeName: "invoketarget",
|
||||
links: [{ type: "idref", value: "invokee" }],
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
requestLongerTimeout(2);
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue