Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for valueless tag options #33

Closed
wants to merge 2 commits into from
Closed

Add support for valueless tag options #33

wants to merge 2 commits into from

Conversation

Dijky
Copy link

@Dijky Dijky commented Nov 30, 2014

  • Tag options can have no value. The value is set to boolean true.
    For example, [video nocontrols]...[/video] instead of [video nocontrols=1]...[/video] works.
  • Exit other states to OPTION_STATE_DEFAULT instead of OPTION_STATE_KEY in Parser::parseOptions(). This is necessary to exit OPTION_STATE_KEY without a value (case ' ').

Mashkin added 2 commits November 30, 2014 06:51
Cleanly separate OPTION_STATE_KEY and OPTION_STATE_DEFAULT in Parser::parseOptions().
@Dijky Dijky mentioned this pull request Nov 30, 2014
@shmax
Copy link
Contributor

shmax commented Nov 30, 2014

How about some new unit tests that illustrate these use cases?

@jbowens
Copy link
Owner

jbowens commented Dec 1, 2014

will merge with test cases

@Dijky
Copy link
Author

Dijky commented Dec 1, 2014

I found a small bug in the change, will fix and provide test cases later today.

@jbowens jbowens closed this Mar 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants