scan testing

test:
This is classy divbogusfoo
bar
xxx
inner
-
end

Scan based on "div" and "span"

<scancreate id=test tags="div span" src=${markup} />;

starting markup


enumerated names and values

  • =

Misc other stuff

  • tokens:
  • tags:
  • not tags:
  • divs:
  • tokens with "class":
  • first token with "class":
  • last token with "class":
  • id=bar:
  • any id:
  • first id:
  • last id:
  • Test next/prior/last:
    =
    * next:
    * prior:
    * first:
    * last:
    * child:
    * child.next:
    * child.last:
    * parent:
    * parent attributes:

Inserting markup

testing
foo

bar

(

oneboldtwo
)
=====
  • Base markup
  • tags:
    - :
  • not tags
    - :
  • data - insert after: <scancombine id=ins.1 src=NEW-STUFF at="after">
  • data - insert before <scancombine id=ins.1 src=NEW-STUFF at="before">
  • tag: insert as child <scancombine id=ins.1 src=NEW-STUFF at="child">
  • tag - insert after <scancombine id=ins.2 src=NEW-STUFF at="after">
  • tag: insert before <scancombine id=ins.2 src=NEW-STUFF at="before">
  • tag: insert as child <scancombine id=ins.2 src=NEW-STUFF at="child">
  • tag: isert as child (before) <scancombine id=ins.2 src=NEW-STUFF at="child,before">
  • defaults <scancombine id=ins src=NEW-STUFF>
  • defaults <scancombine id=ins src=NEW-STUFF at=before >

Test changing attributes and values

  • Add an attribute <scanedit id=ins.2.6 attribute=class value="banana">

  • replace an attribute <scanedit id=ins.2.6 attribute=id value="was inner">

  • replace a data value <scanedit id=ins.2.3 value="WAS BAR">

  • error: replace a data value of a tag <scanedit id=ins.2.6 value="won't work">

  • error: replace an attribute of a non tag <scanedit id=ins.2.3 attribute=hello value="won't work">

Test by direct substitution using "set"