Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Issue 3249: FormFile does not allow "value" as an attribute #5425

Closed
wants to merge 2 commits into from
Closed

Issue 3249: FormFile does not allow "value" as an attribute #5425

wants to merge 2 commits into from

Conversation

ThaDafinser
Copy link
Contributor

See issue #3249 for details

FileElement does not allow value as an attribute

@ThaDafinser
Copy link
Contributor Author

Please do not merge yet. I'm not 100% sure yet, if it's not a BC break.

Since there was test, which tested if there is a value set...

@froschdesign
Copy link
Member

I can not see a BC break, because the attribute is not used by browsers. (security restrictions)

So: 👍

@kbabioch
Copy link
Contributor

The problem with your approach is that the attribute is actually valid within HTML 4.01, XHTML 1.0/1.1, but is not allowed within HTML5. So removing it in all cases is probably not the right thing to do.

@froschdesign
Copy link
Member

@johnpatcher

So removing it in all cases is probably not the right thing to do.

And again:

it is not used by browsers because they have a security restrictions for this input type.

You can not set a value, because it is always ignored! (in all Versions of HTML!)

weierophinney added a commit that referenced this pull request Jan 3, 2014
Issue 3249: FormFile does not allow "value" as an attribute
weierophinney added a commit that referenced this pull request Jan 3, 2014
@ghost ghost assigned weierophinney Jan 3, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants