Skip to content

Commit

Permalink
Propose update to Selector section (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
WilcoFiers committed Mar 28, 2017
1 parent dab6dae commit 85589ec
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions act-framework.bs
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,11 @@ ACT Test Procedure {#test-proc}
Selector {#test-proc-selector}
------------------------------

A selector is a pattern that is used as a condition to filter input data to be evaluated against the test procedure. For example, finding all nodes in the DOM tree, or finding tags that are incorrectly closed in an HTML document.
A selector is a filter procedure that is used on the input data to be evaluated against the test procedure. For example, finding specific nodes in the DOM tree, or finding tags that are incorrectly closed in an HTML document.

Selector syntax depends on the test subject type. When a formal syntax is available, the selector should use that syntax. When a formal selector syntax is not available for the test subject type, the selector MAY be described unambiguously in plain English.
Selector syntax depends on the test subject type. When a formal syntax can be used, that (part of the) selector should use that syntax. When a formal selector syntax can not be used, that (part of the) selector MAY be described unambiguously in plain language.

This can be used together, such as in the following example which uses CSS selector syntax to locate elements, combined with a plain language description to further filter the nodes.

<div class=example>
A rule for HTML `img` elements has the following selector:
Expand Down

0 comments on commit 85589ec

Please sign in to comment.