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

Commit

Permalink
Change contenteditable and draggable from bool to enum { "true", "fal…
Browse files Browse the repository at this point in the history
…se" }

fixes #155
  • Loading branch information
fredemmott committed Mar 28, 2016
1 parent 8b770c8 commit 5716746
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/html/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,19 @@
abstract class :xhp:html-element extends :x:primitive {
use XHPBaseHTMLHelpers;

// enum { 'true', 'false' } attributes: these are actually tri-state -
// the implied third value is usually 'auto' or 'inherit'; for example,
// contenteditable defaults to 'inherit' if unspecified, so
// contenteditable=false is valid ans has meaning

attribute
// Global HTML attributes
Stringish accesskey,
Stringish class,
bool contenteditable,
enum { 'true', 'false' } contenteditable,
Stringish contextmenu,
Stringish dir,
bool draggable,
enum { 'true', 'false' } draggable,
Stringish dropzone,
bool hidden,
Stringish id,
Expand Down

0 comments on commit 5716746

Please sign in to comment.