Fix overwriting value of content's encoding attribute by type attribute.
authorZbigniew Kostrzewa <z.kostrzewa@samsung.com>
Thu, 11 Apr 2013 14:47:29 +0000 (16:47 +0200)
committerGerrit Code Review <gerrit2@kim11>
Fri, 12 Apr 2013 09:38:37 +0000 (18:38 +0900)
commit129ab9bfc3625dd85c58b9e7d8196d90c2e665ab
treebc6cac40ab4de2bebc8d90d8b26d63a3cec1d9c6
parent59bfb6f60306dfc9abe4a664a0a288dfbad25fa6
Fix overwriting value of content's encoding attribute by type attribute.

[Issue#] N/A
[Problem] Though content encoding is specified the actual encoding value
is taken from type attribute if type attribute is set after encoding
attribute in the configuration file.
[Cause] Value from the last attribute parsed overwrites encoding of the
page even if it has been already read from encoding attribute.
[Solution] Check while parsing type attribute whether encoding has
already been set.
[SCMRequest] N/A

[Verification]
1. Build repository.
2. Run `wrt-extra-tests-w3c --output=text --regexp='ta_aaaaaaaaaa_z1'`

Change-Id: Ie49f4caf4111e3de00394a203acc3cee805d33de
src/configuration_parser/widget_parser.cpp