Provides assorted network utility functions, as well as functions to parse URLs.
Inherits from:
nsISupports
Last changed in Gecko 1.9 (Firefox 3)With all four versions:
Provides assorted network utility functions, as well as functions to parse URLs.
1.0
28
Introduced
Gecko 1.1
Deprecated
Gecko 1.8.1
Obsolete
Gecko 1.9.2
Inherits from:
nsISupports
Last changed in Gecko 1.9 (Firefox 3)With just the added version:
Provides assorted network utility functions, as well as functions to parse URLs.
1.0
28
Introduced
Gecko 1.1
Inherits from:
nsISupports
Last changed in Gecko 1.9 (Firefox 3)With added and deprecated versions:
Provides assorted network utility functions, as well as functions to parse URLs.
1.0
28
Introduced
Gecko 1.1
Deprecated
Gecko 1.7
Inherits from:
nsISupports
Last changed in Gecko 1.9 (Firefox 3)HTML by categories
Flow content elements
/* input parameters: topic tag, section tag, [optional] template to format the entry, such as HTMLElement */
var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project")) {
lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
lang = page.language;
}
var p1 = wiki.gettag($0);
var links = [];
foreach(var p in p1.pages) {
if (p.language == lang) {
var t = p.tags;
if (map.contains(t, $1)) {
links += [{title: p.title, path: p.path, tags: t}];
}
}
}
links = list.sort(links, "title");
- ;
foreach(var l in links) {
- if ($2) { wiki.template($2, {title:l.title}); } else { web.link(l.path, l.title); } if (map.contains(l.tags, "HTML5")) { web.text(" "); template.HTMLVersionInline(5); } if (map.contains(l.tags, "HTML4")) { web.text(" "); template.HTMLVersionInline(4); } if (map.contains(l.tags, "Deprecated")) { web.text(" "); template.deprecated_inline(); } if (map.contains(l.tags, "Obsolete")) { web.text(" "); template.obsolete_inline(); } }
Form elements
/* input parameters: topic tag, section tag, [optional] template to format the entry, such as HTMLElement */
var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project")) {
lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
lang = page.language;
}
var p1 = wiki.gettag($0);
var links = [];
foreach(var p in p1.pages) {
if (p.language == lang) {
var t = p.tags;
if (map.contains(t, $1)) {
links += [{title: p.title, path: p.path, tags: t}];
}
}
}
links = list.sort(links, "title");
- ;
foreach(var l in links) {
- if ($2) { wiki.template($2, {title:l.title}); } else { web.link(l.path, l.title); } if (map.contains(l.tags, "HTML5")) { web.text(" "); template.HTMLVersionInline(5); } if (map.contains(l.tags, "HTML4")) { web.text(" "); template.HTMLVersionInline(4); } if (map.contains(l.tags, "Deprecated")) { web.text(" "); template.deprecated_inline(); } if (map.contains(l.tags, "Obsolete")) { web.text(" "); template.obsolete_inline(); } }
Tables
/* input parameters: topic tag, section tag, [optional] template to format the entry, such as HTMLElement */
var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project")) {
lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
lang = page.language;
}
var p1 = wiki.gettag($0);
var links = [];
foreach(var p in p1.pages) {
if (p.language == lang) {
var t = p.tags;
if (map.contains(t, $1)) {
links += [{title: p.title, path: p.path, tags: t}];
}
}
}
links = list.sort(links, "title");
- ;
foreach(var l in links) {
- if ($2) { wiki.template($2, {title:l.title}); } else { web.link(l.path, l.title); } if (map.contains(l.tags, "HTML5")) { web.text(" "); template.HTMLVersionInline(5); } if (map.contains(l.tags, "HTML4")) { web.text(" "); template.HTMLVersionInline(4); } if (map.contains(l.tags, "Deprecated")) { web.text(" "); template.deprecated_inline(); } if (map.contains(l.tags, "Obsolete")) { web.text(" "); template.obsolete_inline(); } }
Phrasing content elements
/* input parameters: topic tag, section tag, [optional] template to format the entry, such as HTMLElement */
var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project")) {
lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
lang = page.language;
}
var p1 = wiki.gettag($0);
var links = [];
foreach(var p in p1.pages) {
if (p.language == lang) {
var t = p.tags;
if (map.contains(t, $1)) {
links += [{title: p.title, path: p.path, tags: t}];
}
}
}
links = list.sort(links, "title");
- ;
foreach(var l in links) {
- if ($2) { wiki.template($2, {title:l.title}); } else { web.link(l.path, l.title); } if (map.contains(l.tags, "HTML5")) { web.text(" "); template.HTMLVersionInline(5); } if (map.contains(l.tags, "HTML4")) { web.text(" "); template.HTMLVersionInline(4); } if (map.contains(l.tags, "Deprecated")) { web.text(" "); template.deprecated_inline(); } if (map.contains(l.tags, "Obsolete")) { web.text(" "); template.obsolete_inline(); } }
Deprecated elements
/* input parameters: topic tag, section tag, [optional] template to format the entry, such as HTMLElement */
var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project")) {
lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
lang = page.language;
}
var p1 = wiki.gettag($0);
var links = [];
foreach(var p in p1.pages) {
if (p.language == lang) {
var t = p.tags;
if (map.contains(t, $1)) {
links += [{title: p.title, path: p.path, tags: t}];
}
}
}
links = list.sort(links, "title");
- ;
foreach(var l in links) {
- if ($2) { wiki.template($2, {title:l.title}); } else { web.link(l.path, l.title); } if (map.contains(l.tags, "HTML5")) { web.text(" "); template.HTMLVersionInline(5); } if (map.contains(l.tags, "HTML4")) { web.text(" "); template.HTMLVersionInline(4); } if (map.contains(l.tags, "Deprecated")) { web.text(" "); template.deprecated_inline(); } if (map.contains(l.tags, "Obsolete")) { web.text(" "); template.obsolete_inline(); } }
Obsolete elements
/* input parameters: topic tag, section tag, [optional] template to format the entry, such as HTMLElement */
var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project")) {
lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
lang = page.language;
}
var p1 = wiki.gettag($0);
var links = [];
foreach(var p in p1.pages) {
if (p.language == lang) {
var t = p.tags;
if (map.contains(t, $1)) {
links += [{title: p.title, path: p.path, tags: t}];
}
}
}
links = list.sort(links, "title");
- ;
foreach(var l in links) {
- if ($2) { wiki.template($2, {title:l.title}); } else { web.link(l.path, l.title); } if (map.contains(l.tags, "HTML5")) { web.text(" "); template.HTMLVersionInline(5); } if (map.contains(l.tags, "HTML4")) { web.text(" "); template.HTMLVersionInline(4); } if (map.contains(l.tags, "Deprecated")) { web.text(" "); template.deprecated_inline(); } if (map.contains(l.tags, "Obsolete")) { web.text(" "); template.obsolete_inline(); } }
New in HTML5
/* input parameters: topic tag, section tag, [optional] template to format the entry, such as HTMLElement */
var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project")) {
lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
lang = page.language;
}
var p1 = wiki.gettag($0);
var links = [];
foreach(var p in p1.pages) {
if (p.language == lang) {
var t = p.tags;
if (map.contains(t, $1)) {
links += [{title: p.title, path: p.path, tags: t}];
}
}
}
links = list.sort(links, "title");
- ;
foreach(var l in links) {
- if ($2) { wiki.template($2, {title:l.title}); } else { web.link(l.path, l.title); } if (map.contains(l.tags, "HTML5")) { web.text(" "); template.HTMLVersionInline(5); } if (map.contains(l.tags, "HTML4")) { web.text(" "); template.HTMLVersionInline(4); } if (map.contains(l.tags, "Deprecated")) { web.text(" "); template.deprecated_inline(); } if (map.contains(l.tags, "Obsolete")) { web.text(" "); template.obsolete_inline(); } }
HTML in alphabetical order
/* input parameters: topic tag, [optional] template to format the entry, such as HTMLElement */
var u = uri.parts(Page.uri);
var lang = string.tolower(u.path[0]);
if (string.contains(lang, "project")) {
lang = string.substr(lang, 8);
}
/* fall back to page.language on a user page */
else if (string.StartsWith(lang, "user:")) {
lang = page.language;
}
var p1 = wiki.gettag($0);
var links = [];
foreach(var p in p1.pages) {
if (p.language == lang) {
var t = p.tags;
links += [{title: p.title, path: p.path, tags: t}];
}
}
links = list.sort(links, "title");
foreach(var firstLetter in ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"]) {
var matches = [];
foreach(var l in links) {
if (string.startswith(string.toLower(l.title), firstLetter)) {
matches += [l];
}
}
if (#matches) {
web.text(firstLetter)
- ;
foreach(var l in matches) {
- if ($1) { wiki.template($1, {title:l.title}); } else { web.link(l.path, l.title); } if (map.contains(l.tags, "HTML5")) { web.text(" "); template.HTMLVersionInline("5"); } if (map.contains(l.tags, "HTML4")) { web.text(" "); template.HTMLVersionInline("4"); } if (map.contains(l.tags, "Deprecated")) { web.text(" "); template.deprecated_inline(); } if (map.contains(l.tags, "Obsolete")) { web.text(" "); template.obsolete_inline(); } }
Document Tags and Contributors
Last updated by:
Sheppy,