Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Find Stringish replace string in src/tags (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexidor authored and fredemmott committed Nov 18, 2019
1 parent 2678037 commit f46e7ce
Show file tree
Hide file tree
Showing 40 changed files with 149 additions and 149 deletions.
16 changes: 8 additions & 8 deletions src/html/tags/a/A.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@

class :a extends :xhp:html-element {
attribute
Stringish download,
Stringish href,
Stringish hreflang,
Stringish media,
Stringish rel,
Stringish target,
Stringish type,
string download,
string href,
string hreflang,
string media,
string rel,
string target,
string type,
// Legacy
Stringish name;
string name;
category %flow, %phrase, %interactive;
// Should not contain %interactive
children (pcdata | %flow)*;
Expand Down
16 changes: 8 additions & 8 deletions src/html/tags/a/Area.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

class :area extends :xhp:html-singleton {
attribute
Stringish alt,
Stringish coords,
Stringish download,
Stringish href,
string alt,
string coords,
string download,
string href,
bool hreflang,
Stringish media,
Stringish rel,
string media,
string rel,
enum {
'circ',
'circle',
Expand All @@ -26,8 +26,8 @@ enum {
'rect',
'rectangle',
} shape,
Stringish target,
Stringish type;
string target,
string type;
category %flow, %phrase;
protected string $tagName = 'area';
}
4 changes: 2 additions & 2 deletions src/html/tags/a/Audio.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ class :audio extends :xhp:html-element {
bool controls,
enum {'anonymous', 'use-credentials'} crossorigin,
bool loop,
Stringish mediagroup,
string mediagroup,
bool muted,
enum {'none', 'metadata', 'auto'} preload,
Stringish src;
string src;
category %flow, %phrase, %embedded, %interactive;
children (:source*, :track*, (pcdata | %flow)*);
protected string $tagName = 'audio';
Expand Down
4 changes: 2 additions & 2 deletions src/html/tags/b/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

class :base extends :xhp:html-singleton {
attribute
Stringish href,
Stringish target;
string href,
string target;
category %metadata;
protected string $tagName = 'base';
}
2 changes: 1 addition & 1 deletion src/html/tags/b/Blockquote.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

class :blockquote extends :xhp:html-element {
attribute Stringish cite;
attribute string cite;
category %flow, %sectioning;
children (pcdata | %flow)*;
protected string $tagName = 'blockquote';
Expand Down
24 changes: 12 additions & 12 deletions src/html/tags/b/Body.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@

class :body extends :xhp:html-element {
attribute
Stringish onafterprint,
Stringish onbeforeprint,
Stringish onbeforeunload,
Stringish onhashchange,
Stringish onmessage,
Stringish onoffline,
Stringish ononline,
Stringish onpagehide,
Stringish onpageshow,
Stringish onpopstate,
Stringish onstorage,
Stringish onunload;
string onafterprint,
string onbeforeprint,
string onbeforeunload,
string onhashchange,
string onmessage,
string onoffline,
string ononline,
string onpagehide,
string onpageshow,
string onpopstate,
string onstorage,
string onunload;
children (pcdata | %flow)*;
protected string $tagName = 'body';
}
14 changes: 7 additions & 7 deletions src/html/tags/b/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ class :button extends :xhp:html-element {
attribute
bool autofocus,
bool disabled,
Stringish form,
Stringish formaction,
Stringish formenctype,
string form,
string formaction,
string formenctype,
enum {'get', 'post'} formmethod,
bool formnovalidate,
Stringish formtarget,
Stringish menu,
Stringish name,
string formtarget,
string menu,
string name,
enum {'submit', 'button', 'reset'} type,
Stringish value;
string value;
category %flow, %phrase, %interactive;
// Should not contain interactive
children (pcdata | %phrase)*;
Expand Down
2 changes: 1 addition & 1 deletion src/html/tags/d/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

class :data extends :xhp:html-element {
attribute Stringish value @required;
attribute string value @required;
category %flow, %phrase;
children (%phrase*);
protected string $tagName = 'data';
Expand Down
4 changes: 2 additions & 2 deletions src/html/tags/d/Del.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

class :del extends :xhp:html-element {
attribute
Stringish cite,
Stringish datetime;
string cite,
string datetime;
category %flow, %phrase;
// transparent
children (pcdata | %flow)*;
Expand Down
6 changes: 3 additions & 3 deletions src/html/tags/e/Embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@
class :embed extends :xhp:html-element {
attribute
int height,
Stringish src,
Stringish type,
string src,
string type,
int width,
/**
* The following attributes are Flash specific.
* Most notable use: youtube video embedding
*/
bool allowfullscreen,
enum {'always', 'never'} allowscriptaccess,
Stringish wmode;
string wmode;

category %flow, %phrase, %embedded, %interactive;
children (pcdata | %phrase)*;
Expand Down
4 changes: 2 additions & 2 deletions src/html/tags/f/Fieldset.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
class :fieldset extends :xhp:html-element {
attribute
bool disabled,
Stringish form,
Stringish name;
string form,
string name;
category %flow;
children (:legend?, (pcdata | %flow)*);
protected string $tagName = 'fieldset';
Expand Down
10 changes: 5 additions & 5 deletions src/html/tags/f/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

class :form extends :xhp:html-element {
attribute
Stringish action,
Stringish accept-charset,
string action,
string accept-charset,
enum {'on', 'off'} autocomplete,
Stringish enctype,
string enctype,
enum {'get', 'post'} method,
Stringish name,
string name,
bool novalidate,
Stringish target;
string target;
category %flow;
// Should not contain :form
children (pcdata | %flow)*;
Expand Down
4 changes: 2 additions & 2 deletions src/html/tags/h/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

class :html extends :xhp:html-element {
attribute
Stringish manifest,
Stringish xmlns;
string manifest,
string xmlns;
children (:head, :body);
protected string $tagName = 'html';
}
8 changes: 4 additions & 4 deletions src/html/tags/i/Iframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
class :iframe extends :xhp:pcdata-element {
attribute
bool allowfullscreen,
Stringish name,
string name,
int height,
Stringish sandbox,
string sandbox,
bool seamless,
Stringish src,
Stringish srcdoc,
string src,
string srcdoc,
int width;
category %flow, %phrase, %embedded, %interactive;
protected string $tagName = 'iframe';
Expand Down
10 changes: 5 additions & 5 deletions src/html/tags/i/Img.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

class :img extends :xhp:html-singleton {
attribute
Stringish alt,
string alt,
enum {'anonymous', 'use-credentials'} crossorigin,
int height,
bool ismap,
Stringish sizes,
Stringish src,
Stringish srcset,
Stringish usemap,
string sizes,
string src,
string srcset,
string usemap,
int width;
category %flow, %phrase;
protected string $tagName = 'img';
Expand Down
32 changes: 16 additions & 16 deletions src/html/tags/i/Input.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@

class :input extends :xhp:html-singleton {
attribute
Stringish accept,
Stringish alt,
Stringish autocomplete,
string accept,
string alt,
string autocomplete,
bool autofocus,
bool checked,
Stringish dirname,
string dirname,
bool disabled,
Stringish form,
Stringish formaction,
Stringish formenctype,
string form,
string formaction,
string formenctype,
enum {'get', 'post'} formmethod,
bool formnovalidate,
Stringish formtarget,
string formtarget,
int height,
enum {
'email',
Expand All @@ -37,19 +37,19 @@ enum {
'url',
'verbatim',
} inputmode,
Stringish list,
Stringish max,
string list,
string max,
int maxlength,
Stringish min,
string min,
int minlength,
bool multiple,
Stringish name,
Stringish pattern,
Stringish placeholder,
string name,
string pattern,
string placeholder,
bool readonly,
bool required,
int size,
Stringish src,
string src,
float step,
enum {
'hidden',
Expand All @@ -76,7 +76,7 @@ enum {
'reset',
'button',
} type,
Stringish value,
string value,
int width;
category %flow, %phrase, %interactive;
protected string $tagName = 'input';
Expand Down
4 changes: 2 additions & 2 deletions src/html/tags/i/Ins.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

class :ins extends :xhp:html-element {
attribute
Stringish cite,
Stringish datetime;
string cite,
string datetime;
category %flow, %phrase;
children (pcdata | %flow)*;
protected string $tagName = 'ins';
Expand Down
8 changes: 4 additions & 4 deletions src/html/tags/k/Keygen.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
class :keygen extends :xhp:html-singleton {
attribute
bool autofocus,
Stringish challenge,
string challenge,
bool disabled,
Stringish form,
Stringish keytype,
Stringish name;
string form,
string keytype,
string name;
category %flow, %phrase, %interactive;
protected string $tagName = 'keygen';
}
4 changes: 2 additions & 2 deletions src/html/tags/l/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

class :label extends :xhp:html-element {
attribute
Stringish for,
Stringish form;
string for,
string form;
category %flow, %phrase, %interactive;
// may not contain label
children (pcdata | %phrase)*;
Expand Down
14 changes: 7 additions & 7 deletions src/html/tags/l/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@

class :link extends :xhp:html-singleton {
attribute
Stringish as,
string as,
enum {'anonymous', 'use-credentials'} crossorigin,
Stringish href,
Stringish hreflang,
Stringish media,
Stringish rel @required,
Stringish sizes,
Stringish type;
string href,
string hreflang,
string media,
string rel @required,
string sizes,
string type;
category %metadata;
protected string $tagName = 'link';
}
2 changes: 1 addition & 1 deletion src/html/tags/m/Map.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

class :map extends :xhp:html-element {
attribute Stringish name;
attribute string name;
category %flow, %phrase;
children (pcdata | %flow)*;
protected string $tagName = 'map';
Expand Down
Loading

0 comments on commit f46e7ce

Please sign in to comment.