Bug 1539265 - Add ::marker pseudo-element handling to WalkerIndex. r=jdescottes

So ::marker pseudo elements can be found via searching for "::marker" in the
markup view.

Differential Revision: https://phabricator.services.mozilla.com/D25109

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Ian Moody 2019-04-01 21:45:54 +00:00
Родитель efc53df901
Коммит ecf9944c5a
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -93,7 +93,10 @@ WalkerIndex.prototype = {
// For each element node, we get the tagname and all attributes names
// and values
const localName = node.localName;
if (localName === "_moz_generated_content_before") {
if (localName === "_moz_generated_content_marker") {
this._addToIndex("tag", node, "::marker");
this._addToIndex("text", node, node.textContent.trim());
} else if (localName === "_moz_generated_content_before") {
this._addToIndex("tag", node, "::before");
this._addToIndex("text", node, node.textContent.trim());
} else if (localName === "_moz_generated_content_after") {