Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was 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
ThaDafinser wants to merge 2 commits into
zendframework:masterfrom
ThaDafinser:patch-3
Closed

Issue 3249: FormFile does not allow "value" as an attribute#5425
ThaDafinser wants to merge 2 commits into
zendframework:masterfrom
ThaDafinser:patch-3

Conversation

@ThaDafinser
Copy link
Copy Markdown
Contributor

See issue #3249 for details

FileElement does not allow value as an attribute

@ThaDafinser
Copy link
Copy Markdown
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
Copy Markdown
Member

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

So: 👍

@kbabioch
Copy link
Copy Markdown
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
Copy Markdown
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