Skip to content

Commit

Permalink
Allow jquery-like selectors in Dom
Browse files Browse the repository at this point in the history
  • Loading branch information
paranoiq committed Oct 12, 2021
1 parent 1f9cc82 commit 418142f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Dom/QueryEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ class QueryEngine
'/replace\\(/' => 'php:functionString("Dogma\\Dom\\QueryEngine::replace", .//',

// jQuery-like shortcuts
/*
'/:input/' => "*[name() = 'input' or name() = 'textarea' or name() = 'select' or name() = 'button']",
'/:file/' => "input[@type = 'file']",
'/:button/' => "*[name() = 'button' or (name() = 'input' and @type = 'button')]",
Expand All @@ -124,7 +123,6 @@ class QueryEngine
'/:header/' => "*[name() = 'h1' or name() = 'h2' or name() = 'h3' or name() = 'h4' or name() = 'h5' or name() = 'h6']",
'/:link/' => "a[@href]",
'/:anchor/' => "*[@id or (name() = 'a' and @name)]",
*/
];

/** @var string[] */
Expand Down

0 comments on commit 418142f

Please sign in to comment.