mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
v1.8.2.1
This commit is contained in:
@@ -310,7 +310,7 @@ public class Xop_xnde_wkr implements Xop_ctx_wkr {
|
||||
}
|
||||
if (tag.Restricted()) {
|
||||
Xoa_page page = ctx.Cur_page();
|
||||
if ( page.Html_data().Restricted()
|
||||
if ( page.Html_data().Html_restricted()
|
||||
&& page.Wiki().Domain_tid() != Xow_wiki_domain_.Tid_home) {
|
||||
int end_pos = gtPos + 1;
|
||||
ctx.Subs_add(root, tkn_mkr.Bry(bgn_pos, end_pos, Bry_.Add(gplx.html.Html_entity_.Lt_bry, Bry_.Mid(src, bgn_pos + 1, end_pos)))); // +1 to skip <
|
||||
|
||||
@@ -41,9 +41,9 @@ public class Xop_xnde_wkr__xatrs_tst {
|
||||
fxt.Test_parse_page_all_str("<div id=\"a b c\"></div>", "<div id=\"a_b_c\"></div>");
|
||||
}
|
||||
@Test public void Lt_should_not_be_escaped_in_input() { // PURPOSE: options textboxes were escaped if input's value had "<"; DATE:2014-07-04
|
||||
fxt.Page().Html_data().Restricted_n_();
|
||||
fxt.Page().Html_data().Html_restricted_n_();
|
||||
fxt.Test_parse_page_wiki_str("<input value='a<'></input>", "<input value='a<'></input>"); // NOTE: do not call parse_page_all_str which will call Page.Clear and reset Restricted
|
||||
fxt.Page().Html_data().Restricted_y_();
|
||||
fxt.Page().Html_data().Html_restricted_y_();
|
||||
}
|
||||
// @Test public void Unclosed() { // PURPOSE: unclosed atr should be treated as key, which should be ignored; PAGE:en.w:Palace of Versailles
|
||||
// fxt.Test_parse_page_wiki_str(String_.Concat_lines_nl_skip_last
|
||||
|
||||
Reference in New Issue
Block a user