virtual void Accept(const XmlAttribute& attribute)
{
- if (attribute.name == L"src") {
- if (attribute.value.size() > 0) {
- m_src = attribute.value;
+ if (m_properNamespace)
+ {
+ if (attribute.name == L"src") {
+ if (attribute.value.size() > 0) {
+ m_src = attribute.value;
+ }
}
}
}
- virtual void Accept(const Element& /*element*/)
- {}
+ virtual void Accept(const Element& element)
+ {
+ if (element.ns ==
+ ConfigurationNamespace::TizenWebAppNamespaceName)
+ {
+ m_properNamespace = true;
+ }
+ }
virtual void Accept(const Text& /*text*/)
{}
virtual void Verify()
{
- if (m_src.IsNull()) {
- LogWarning(
- "src attribute of splash element is mandatory - ignoring");
+ if (m_src.IsNull())
+ {
+ LogWarning("src attribute of splash element is mandatory - ignoring");
return;
}
SplashParser(ConfigParserData& data) :
ElementParser(),
- m_data(data)
+ m_data(data),
+ m_properNamespace(false)
{}
private:
DPL::OptionalString m_src;
ConfigParserData& m_data;
+ bool m_properNamespace;
};
class BackgroundParser : public ElementParser