| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights |
| 6 * reserved. | 6 * reserved. |
| 7 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> | 7 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 // the script's type is "classic", then run these substeps:" | 826 // the script's type is "classic", then run these substeps:" |
| 827 // TODO(hiroshige): Check the script's type. | 827 // TODO(hiroshige): Check the script's type. |
| 828 if (event_attribute.IsNull() || for_attribute.IsNull()) | 828 if (event_attribute.IsNull() || for_attribute.IsNull()) |
| 829 return true; | 829 return true; |
| 830 | 830 |
| 831 // 3. "Strip leading and trailing ASCII whitespace from event and for." | 831 // 3. "Strip leading and trailing ASCII whitespace from event and for." |
| 832 for_attribute = for_attribute.StripWhiteSpace(); | 832 for_attribute = for_attribute.StripWhiteSpace(); |
| 833 // 4. "If for is not an ASCII case-insensitive match for the string | 833 // 4. "If for is not an ASCII case-insensitive match for the string |
| 834 // "window", | 834 // "window", |
| 835 // then abort these steps at this point. The script is not executed." | 835 // then abort these steps at this point. The script is not executed." |
| 836 if (!EqualIgnoringCase(for_attribute, "window")) | 836 if (!DeprecatedEqualIgnoringCase(for_attribute, "window")) |
| 837 return false; | 837 return false; |
| 838 event_attribute = event_attribute.StripWhiteSpace(); | 838 event_attribute = event_attribute.StripWhiteSpace(); |
| 839 // 5. "If event is not an ASCII case-insensitive match for either the | 839 // 5. "If event is not an ASCII case-insensitive match for either the |
| 840 // string "onload" or the string "onload()", | 840 // string "onload" or the string "onload()", |
| 841 // then abort these steps at this point. The script is not executed. | 841 // then abort these steps at this point. The script is not executed. |
| 842 return EqualIgnoringCase(event_attribute, "onload") || | 842 return DeprecatedEqualIgnoringCase(event_attribute, "onload") || |
| 843 EqualIgnoringCase(event_attribute, "onload()"); | 843 DeprecatedEqualIgnoringCase(event_attribute, "onload()"); |
| 844 } | 844 } |
| 845 | 845 |
| 846 String ScriptLoader::ScriptContent() const { | 846 String ScriptLoader::ScriptContent() const { |
| 847 return element_->TextFromChildren(); | 847 return element_->TextFromChildren(); |
| 848 } | 848 } |
| 849 | 849 |
| 850 } // namespace blink | 850 } // namespace blink |
| OLD | NEW |