1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
8 WebInspector.CSSArticle = function()
13 this.standardizationStatus;
16 /** @type {!Object.<string, ?Array.<!Object.<string>>>} */
21 * @param {string} wikiMarkupText
22 * @return {?WebInspector.CSSArticle}
24 WebInspector.CSSArticle.parse = function(wikiMarkupText)
26 var wikiParser = new WebInspector.WikiParser(wikiMarkupText);
27 var wikiDocument = wikiParser.document();
29 var article = new WebInspector.CSSArticle();
30 if (typeof wikiDocument["Page_Title"] !== "undefined")
31 article.pageTitle = wikiDocument["Page_Title"];
32 if (typeof wikiDocument["Standardization_Status"] !== "undefined")
33 article.standardizationStatus = wikiDocument["Standardization_Status"];
34 if (typeof wikiDocument["Summary_Section"] !== "undefined")
35 article.summary = wikiDocument["Summary_Section"];
36 if (typeof wikiDocument["CSS Property"] !== "undefined")
37 article.cssProperties = wikiDocument["CSS Property"];