These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:16 pm Advanced search

html input features

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

html input features

Postby PMB9 » Wed Feb 18, 2009 7:15 pm

What about
Code: Select all
<textarea type="html">

and
Code: Select all
<div editable>Just edit this text, if you want!</div>
?

So you don't need TinyMCE, FCKeditor, etc.[/code]
PMB9
<h3>
 
Posts: 50
Joined: Sat Jan 26, 2008 5:38 pm

Postby zcorpan » Thu Feb 19, 2009 11:15 am

Do you mean that you want rich, editable text that takes part in form submission without scripting?

Right now we have contenteditable and designMode, though you need scripting for both of them if you want to submit the text.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby PMB9 » Fri Feb 20, 2009 7:22 pm

Yes, I want submit rich, editable text without scripting. It needs to be barrier-free.
PMB9
<h3>
 
Posts: 50
Joined: Sat Jan 26, 2008 5:38 pm

Postby zcorpan » Sat Feb 21, 2009 10:25 am

The script would basically just be
Code: Select all
<form>
<div contenteditable id=message><p><br></p></div>
<input type=hidden name=hidden>
<script>
  document.forms[0].onsubmit = function() {
    this.hidden.value = document.getElementById('message').innerHTML;
  }
</script>
<p><input type=submit></p>
</form>

Is that really too much of a hassle?
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby PMB9 » Sun Mar 01, 2009 2:46 pm

Yes, that's too much of a hassle. I don't like to use javascript for this basic feature. It seems to be a workaround. I won't look like a textarea.
PMB9
<h3>
 
Posts: 50
Joined: Sat Jan 26, 2008 5:38 pm

Postby zcorpan » Sun Mar 01, 2009 5:28 pm

This was discussed before, see http://lists.whatwg.org/htdig.cgi/whatw ... 04600.html and messages in the same thread http://lists.whatwg.org/htdig.cgi/whatw ... .html#4526

I think we need to get better interop on what's in the spec now before extending the feature...
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby PMB9 » Fri Mar 06, 2009 6:19 pm

I want to keep my website free of javascript, but I don't want to force visitors to write html. I think basic support for this feature is easy to implement for browser engineers, if they already support "contenteditable".
PMB9
<h3>
 
Posts: 50
Joined: Sat Jan 26, 2008 5:38 pm


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 0 guests