Make value attribute for color input conform to HTML spec
http://www.whatwg.org/specs/web-apps/current-work/multipage/number-state.html#color-state http://www.w3.org/TR/html-markup/input.color.html
This commit is contained in:
parent
95d6e79f30
commit
f6c787e13a
|
@ -52,7 +52,7 @@ shared_examples_for "click_button" do
|
|||
end
|
||||
|
||||
it "should serialise and submit color fields" do
|
||||
@results['html5_color'].should == '#FFF'
|
||||
@results['html5_color'].should == '#FFFFFF'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -335,7 +335,7 @@
|
|||
</p>
|
||||
<p>
|
||||
<label for="html5_color">Html5 Color</label>
|
||||
<input type="color" name="form[html5_color]" value="#FFF" id="html5_color"/>
|
||||
<input type="color" name="form[html5_color]" value="#FFFFFF" id="html5_color"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Reference in New Issue