jfw: | (per selection, implications are worse than noted here so far - editor page can be html-injected) | [00:00] |
jfw: | re http://ossasepia.com/2020/04/20/ossasepia-logs-for-31-Oct-2019#1008357 I'd say the problem isn't html doing what it's supposed to do i.e. displaying < as a literal less-than, but wordpress failing to account for this when rendering the initial editor content, exacerbated by the browser accomodating the brokenness to some degree. | [00:07] |
ossabot: | Logged on 2019-10-31 21:05:59 billymg: whaack: i have run into this same bug myself. the problem is html renders "escaped" html characters as their symbols. e.g. if you initially input something like "<p>" to render a <p> tag it will get saved as such in mysql. but when you edit the post, and the same "<p>" is pulled out of the db and put into the text area, it will render as "<p>" | [00:07] |
jfw: | billymg, know a reason to prefer htmlentities to htmlspecialchars? fwiw I can't tell why the former even exists and the docs don't fully specify what it does | [00:32] |
jfw: | I had a couple draft patches for this and other issues; I could publish next week but will defer to diana_coman on priorities. | [00:37] |
jfw: | re selection mechanism quirks, note that the span tag insertion works at the low level of string insertion, no awareness of the HTML structure or anything, and I'd caution against trying to hack something like that onto it as it pulls in the whole mess of parsing malformed tag-soup since wordpress isn't strict to begin with. | [00:42] |
whaack: | jfw: my current strategy is to disregard the position of the match for "b" if, after the position of the match, a close tag comes before an open tag. then try 1 more time to find a match after the close tag. | [00:53] |
whaack: | (this is for fixing the problem that causes the select-display to break elements/links, i haven't done too much thinking re closing the <span> element) | [00:56] |
whaack: | i agree with you that we cannot assume proper HTML structure. but since the sel-display is a best effort basis, i think it is the right thing to not insert a span tag when correct HTML structure would imply we'd be placing that tag inside of another tag. | [01:05] |
whaack: | to sleep | [01:12] |
spyked: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-29-Oct-2019#1008077 <-- lulz @ "fast-food technology". I'm wondering how this translates to software in technical terms. is it just the inflation of code, or what? | [06:32] |
ossabot: | Logged on 2019-10-29 18:15:15 dorion: I think the problem is they're aiming for the masses rather than elite. think bitcoin can/will/is for liberating poor. so they push fast-food technology. | [06:32] |
spyked: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-31-Oct-2019#1008349 <-- ftr, I also stumbled upon this: http://thetarpit.org/2019/a-guide-to-systematically-exploring-the-entrails-of-mp-wp-illustrated-using-some-weird-found-in-the-post-editor . wrapping the input field content in htmlentities did the trick for me, but otherwise I thought this is something particular to my environment | [06:37] |
ossabot: | Logged on 2019-10-31 18:33:26 whaack: lol til after hitting 'save draft' on a mpwp post with html characters escaped, the escaped characters are evaluated to their html characters, thus hitting 'save draft' twice in succession can alter the content of a post. | [06:37] |
diana_coman: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008378 - what is a "draft patch"? | [07:19] |
ossabot: | Logged on 2019-11-01 00:37:56 jfw: I had a couple draft patches for this and other issues; I could publish next week but will defer to diana_coman on priorities. | [07:19] |
diana_coman: | such a nice #o log to wake up to! | [07:20] |
diana_coman: | spyked: fast-food tech seems to me very aptly put, really; think of it: shiny and BIG, cheap and available in 1001 varieties of the same thing, "attractive" if you don't look much/haven't seen much else, shitty content and abismal quality that will screw you up in the end; what's there not to fit, really. | [07:22] |
diana_coman: | whaack: well done there; for the moment I'd say get out first what you had for this week anyway | [07:23] |
diana_coman: | then we'll see for next week; if jfw already has an actual solution implemented, there's no need to duplicate the work, can just as well pick his apart :P | [07:23] |
diana_coman: | and then billymg will pick apart that picking apart so hopefully the end result is fully tested. | [07:24] |
diana_coman: | spyked: + there is that important part "you don't have to do it yourself!!" | [07:27] |
diana_coman: | make it out of whatever shit you find, pre-packaged solutions tech or food-wise. | [07:27] |
diana_coman: | dorion: why u not in #t ? add it to your autojoin and don't be silly. | [07:34] |
spyked: | diana_coman, I can quite see the "one size fits all"/"pre-packaged silver bullet" angle. I'm only mildly curious what this says about the code itself, e.g. I looked at the google-android code at one point and it was grossly overengineered. and I suppose that's also the case with code that's otherwise proven to be working under extreme conditions, such as the linux kernel. | [07:50] |
spyked: | imho useful to make the distinction between "complexity for fast consumption" and "complexity that gives a huge productivity boost" | [07:51] |
ossabot: | (trilema) 2018-06-05 mircea_popescu: "thetarpit blog scaffolding is a few kLoC of CL, but lacks *any* editor-side interface" << understand something : i publish more than anyone, and by anyone we don't mean solo operators, we mean whole fucking outfits. there's a reason for this. the fact that trilema is comfortable to me provides those last edges of extra productivity and intellectual leverage that convert exceptional performance into mindblowing performance. t | [07:51] |
diana_coman: | possibly; at the other extreme, the copy/paste/autogen horrors are anything *other* than overengineering, lol. | [07:51] |
diana_coman: | spyked: heh, yes, the two types of complexity mirroring the two types of simplicity | [08:14] |
ossabot: | (trilema) 2019-10-31 diana_coman: there's all sorts of simple and not all of it boring; that there though would be the boring-simple, more like the simple remains of a cut-out than the simple path to the core of an intricacy. | [08:14] |
diana_coman: | but fast-food is not really about no-complexity at all, quite on the contrary it would seem to me that it's precisely a lot of complexity just of the wrong kind (it's industrial for a reason, after all) | [08:15] |
diana_coman: | whaack lobbes jfw is this all about putting markup in the text or is there more to it (if yes, what)? | [08:41] |
ossabot: | (trilema) 2019-11-01 diana_coman: http://logs.ossasepia.com/log/trilema/2019-11-01#1949009 - hm; now I'll have to see this in detail then. | [08:41] |
diana_coman: | whaack: also, do delete those test-trackbacks, no need to actually keep them in there. | [08:42] |
diana_coman: | and worse, they obscure actual comments. | [08:43] |
whaack: | diana_coman: good morning. i implemented a solution last night to prevent select-display from hacking up other tags. I will give it a quick few tests and then publish it and continue with my week's work, if that sounds acceptable. | [10:34] |
diana_coman: | whaack: might as well publish it if it's done anyway but as a rule, before implementing a solution give some thought and/or ask re what the perceived problem is | [10:35] |
diana_coman: | because here essentially this is the q now that I have to figure out from you, jfw, billymg, lobbes : what *exactly* is the problem you set out to solve and why is it a problem? | [10:35] |
whaack: | diana_coman: http://ossasepia.com/2020/04/20/ossasepia-logs-for-31-Oct-2019#1008365 i think lobbes example is user-error. putting b=http is asking to break a link. however in my example, there is a legitamite reason why one wants to select the text "trilema" but cannot do it because it is the same text found inside the anchor tag | [10:37] |
ossabot: | Logged on 2019-10-31 21:49:56 whaack: lobbes: i am working on a solution to this http://logs.ossasepia.com/log/trilema/2019-10-31#1948993 . you don't want to put any string for the b query param that is going to match a string inside of an anchor tag. this problem occurs frequently because often the same text in a link you want to select is inside of the anchor tag: i.e. for the text 'mp writes at <a href="http://trilema.com">trilema</a>' if you try to select trilema w | [10:37] |
diana_coman: | whaack: write it up and publish it since you have it, there's no harm in that and I'll read it, don't worry. | [10:38] |
whaack: | kk | [10:41] |
dorion: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008384 << and building off diana_coman's comment, I see at least a couple angles. the first is who the technology is designed for. it seems since the '80s there has been a major push, primarily by aapl and msft, for computers for the masses, i.e. lowest common denominator, 'over 1 billion served'. | [13:45] |
ossabot: | Logged on 2019-11-01 06:32:40 spyked: http://ossasepia.com/2020/04/20/ossasepia-logs-for-29-Oct-2019#1008077 <-- lulz @ "fast-food technology". I'm wondering how this translates to software in technical terms. is it just the inflation of code, or what? | [13:45] |
dorion: | this aim lead to 'point and click' (visual/spacial) rather than command prompt (verbal) usage modality. 'it should be so easy grandma can use it,' etc. further, the incorrect labeling of learned behaviour as 'intuitive', which really means luser ought never have to think, read manual or even error messages. | [13:47] |
ossabot: | (trilema) 2016-09-14 asciilifeform: 'the only intuitive notation is the tit' or how did it go. | [13:47] |
dorion: | To compensate for low quality user, all sorts of complexity needs to be built in, which is one part of the code inflation. another secondary part, described by naggum iirc (but don't have link handy) is demand for ever more 'programmers'. excess demand lowers quality on the creation side combined with sillycon valley, 'move fast and break things' so we can 'scale' (nevermind profitably) and sell | [13:50] |
dorion: | to the suckers on the public markets. | [13:50] |
diana_coman: | 'point and click' aka click-and-cluck | [13:50] |
ossabot: | Logged on 2019-08-29 19:13:57 diana_coman: shrysr: different yes but not better; it's usually touch-screens that they throw at kids from nursery, yes; + "learning to program by click-and-cluck" | [13:50] |
diana_coman: | and all of it coming from the core cause of too much money distributed to idiots; it makes for perverse incentives and the inevitable result of products made for them. | [13:53] |
dorion: | lol at click-and-cluck | [13:54] |
dorion: | more technically, "I'll import entire library rather than re-implement the one function I 'need'". and then the 'library' imports libraries. | [13:55] |
ossabot: | (trilema) 2018-08-21 mircea_popescu: Mocky he has a point, "library" is oreilly-ism. before the free/open source struggle for power, it was rather a teaching tool. | [13:55] |
dorion: | which leaves us in dark modern ages where can't buy professional computer -- everything is 'sysco' -- as well documented in http://loper-os.org , the logs, etc. | [13:57] |
dorion: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008397 << thanks for the nudge. I was idling in there with a couple comments. there was a netsplit shortly after the new voice model spec and went back to reading logotrons and joining here rather than idel there. | [14:00] |
ossabot: | Logged on 2019-11-01 07:34:02 diana_coman: dorion: why u not in #t ? add it to your autojoin and don't be silly. | [14:00] |
ossabot: | (trilema) 2019-09-14 mircea_popescu: unrelatedly : hey trinque, now that there's actually multiple functional castles the time's prolly come to update the deedbot voice model into awareness of this situation. so how about a patch making voice in #trilema dependent on ~my~ wot, rather than deedbot's own ; and similarily in any castles that ask for it / you come to an understanding with the lords thereof, so they can use the voice model there if they wanna. | [14:00] |
diana_coman: | dorion: meanwhile though I rated you and therefore you are not exactly idling in there; while you don't yet need to say anything, it's still better for you to be there. | [14:01] |
diana_coman: | for that matter hm, whaack , u also not in #t ? | [14:02] |
whaack: | diana_coman: nope i am not, I will change that now | [14:03] |
dorion: | diana_coman right, letting go of the old habits, aligning to present. | [14:04] |
diana_coman: | good. | [14:05] |
diana_coman: | sorry people for the spew from feedbot. | [16:44] |
whaack: | diana_coman: I rated you in a pm to deedbot, sorry for the delay. The rating was !!rate diana_coman 9 My Master The Marquess Eulora, may I demonstrate gratitude through my actions | [17:27] |
diana_coman: | whaack: no problem. | [17:30] |
diana_coman: | ftr the feedbot issue seems to be a flaw in how the bot decides which links are "new"; uncovered via unplanned testing when I increased the size of posts per page to make archives easier to use. | [17:32] |
ossabot: | (trilema) 2019-11-01 diana_coman: just 1. took out content from archives.php 2. increased limit at per page | [17:32] |
jfw: | Hi all, will catch up on log shortly. diana_coman: I've pushed through and got an outline. (Might be a bit verbose, for an outline.) Will see if I can hammer out the draft this evening. | [17:48] |
jfw: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008388 - vpatch I made to capture my local change, not signed as yet. | [18:17] |
ossabot: | Logged on 2019-11-01 07:19:44 diana_coman: http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008378 - what is a "draft patch"? | [18:17] |
jfw: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008405 + http://logs.ossasepia.com/log/trilema/2019-11-01#1949028 - I expect I'll have to figure out the markup in text point before I'll see what's stupid about using markup syntax to do markup. Is one not supposed to have tags at all in posts? | [18:23] |
ossabot: | Logged on 2019-11-01 08:41:31 diana_coman: whaack lobbes jfw is this all about putting markup in the text or is there more to it (if yes, what)? | [18:23] |
ossabot: | (trilema) 2019-11-01 mp_en_viaje: i didn't look into it ; but going by the novel symbol <fn>, i expect he did a stupid thing, equivalent to walking on a rake, by declaring the footnote separators to be tag-like, <fn> and </fn> | [18:23] |
jfw: | How else does one do links if not <a href="...">? Images if not <img src="...">? And so on. There was the TinyMCE visual editor that billymg's patches removed, is that the preferred thing? | [18:26] |
jfw: | Then if I want to show the literal characters "<p>", how's that supposed to work? The exact problem I perceived myself to hit here is illustrated as: if you use entities ala <p> save, reload, save again, it turns into <p>, which for one thing wasn't the text I saved and for another it then goes through to the browser as a tag. | [18:32] |
jfw: | (perhaps deeper: is there a WordPress manual somewhere that I missed?) | [18:34] |
whaack: | jfw diana_coman: I think that we may be mixing up a few separate issues. Issue (1) is the select-display, i gather this is what MP is referring to and he is saying don't put html markup in your b&e values. Issue (2) is the text editor for mpwp/browser evaluating the output of html entities | [18:35] |
jfw: | oh oh, I think you're right. | [18:37] |
whaack: | jfw: mp says don't do footnotes with <fn> </fn>, not that you shouldn't use any html tags at all | [18:38] |
jfw: | The selection bugs / operator errors are not the thing that I looked deeper at | [18:39] |
ossabot: | (trilema) 2019-11-01 diana_coman: http://logs.ossasepia.com/log/trilema/2019-10-31#1948998 - and moreover, jfw already looked deeper at it, so they'll coordinate and it will be fixed. | [18:39] |
whaack: | jfw: any chance that this http://ztkfg.com/category/a-sip-of-sicp/?b=Do&end=footnotes#select influenced your decision to do <fn> </fn> footnotes? | [18:41] |
jfw: | whaack: it is possible as I recall seeing the article before, though it's the sorta thing I might have considered anyway, don't recall exactly. | [18:44] |
whaack: | diana_coman: I answered you incorrectly for http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008411 . The issue that the three of us were talking about was html entities evaluating in the text editor that I first mentioned here http://ossasepia.com/2020/04/20/ossasepia-logs-for-31-Oct-2019#1008349 . And I also see now that I forgot to include the example of the problem in my post (which was on the unrelated issue I was working on), I will a | [18:47] |
ossabot: | Logged on 2019-11-01 10:35:54 diana_coman: because here essentially this is the q now that I have to figure out from you, jfw, billymg, lobbes : what *exactly* is the problem you set out to solve and why is it a problem? | [18:47] |
ossabot: | Logged on 2019-10-31 18:33:26 whaack: lol til after hitting 'save draft' on a mpwp post with html characters escaped, the escaped characters are evaluated to their html characters, thus hitting 'save draft' twice in succession can alter the content of a post. | [18:47] |
whaack: | dd it now as a comment. | [18:47] |
jfw: | I'll ask belatedly then: why is <fn></fn> stupid? Just the extra typing? I had noticed the footnote plugin originally used <footnote></footnote> (and still supports it for compat!), which did overflow my threshold of comfort | [19:02] |
jfw: | My reasoning was that there's already the entity quoting mechanism for entering a literal < (which is how this ties into the technically separate question of the editor), but none for any other sort of delimiter. | [19:05] |
billymg: | jfw: html tags are fine and meant to be used. http://ossasepia.com/2020/04/20/ossasepia-logs-for-31-Oct-2019#1008357 specifically describes a bug in preserving "escaped" html entities (for example, when you want to output "<p>" in your post, rather than have it be interpreted as the html tag <p>) | [19:15] |
ossabot: | Logged on 2019-10-31 21:05:59 billymg: whaack: i have run into this same bug myself. the problem is html renders "escaped" html characters as their symbols. e.g. if you initially input something like "<p>" to render a <p> tag it will get saved as such in mysql. but when you edit the post, and the same "<p>" is pulled out of the db and put into the text area, it will render as "<p>" | [19:15] |
billymg: | as for footnotes, i think it's just easier and more convenient to use the footnotes plugin instead of manually editing markup to produce the same output | [19:19] |
billymg: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008377 << no reason in particular, it was just the first method i stumbled upon that seemed to achieve the desired result | [19:21] |
ossabot: | Logged on 2019-11-01 00:32:12 jfw: billymg, know a reason to prefer htmlentities to htmlspecialchars? fwiw I can't tell why the former even exists and the docs don't fully specify what it does | [19:21] |
billymg: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008394 << yes, i could include a test for that in the next mp-wp-tests patch | [19:22] |
ossabot: | Logged on 2019-11-01 07:24:36 diana_coman: and then billymg will pick apart that picking apart so hopefully the end result is fully tested. | [19:22] |
jfw: | billymg: oh, I certainly like the footnotes plugin compared to manual tagging & cross-linking, ugh. The possibly-stupid thing I did was change my delimiters from1 to <fn> </fn> (then cut my hand on the scythe because the regex code didn't quote the /) | [19:26] |
billymg: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008411 << i think there may be a few bugs being discussed currently, i was only commenting on the "escaped html entities are not preserved in subsequent edits" bug | [19:26] |
ossabot: | Logged on 2019-11-01 10:35:54 diana_coman: because here essentially this is the q now that I have to figure out from you, jfw, billymg, lobbes : what *exactly* is the problem you set out to solve and why is it a problem? | [19:26] |
billymg: | jfw: ah, i see, i must have missed that part of the thread | [19:28] |
whaack: | bbl | [19:31] |
diana_coman: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008471 - this, yes; can you tell me what problem(s) were you solving exactly? it got all muddied trying to follow what you were actually doing/talking about there. | [19:40] |
ossabot: | Logged on 2019-11-01 19:26:42 jfw: billymg: oh, I certainly like the footnotes plugin compared to manual tagging & cross-linking, ugh. The possibly-stupid thing I did was change my delimiters from2 to <fn> </fn> (then cut my hand on the scythe because the regex code didn't quote the /) | [19:40] |
jfw: | That if I used3, Lisp code would be a pain. | [19:45] |
diana_coman: | jfw: re < and the like, the question there is why would you want to write those in your text? (I suppose that's why I never got to see this) | [19:45] |
diana_coman: | jfw: I get that but just change that to some other delimiters, no? | [19:45] |
jfw: | You never needed to use a less-than sign, or illustrate a tag? | [19:45] |
diana_coman: | and yes, code is ~always in a pain in text, I agree. | [19:45] |
diana_coman: | I don't, no; give me an example where you have to. | [19:46] |
diana_coman: | (I know you *can* do it; I just haven't yet met the case where I *have to* do it) | [19:46] |
billymg: | diana_coman: can't speak for others but i ran into that when i was displaying some html code in a post http://billymg.com/2019/08/mp-wp-automated-testing-proposal-and-vpatch/ | [19:47] |
jfw: | I have not met the case where I have to either; but - it's my blog, I don't want it telling me I can't, neh? | [19:47] |
billymg: | this line: "const postBody = '<p>When in the course of human events..." | [19:47] |
diana_coman: | billymg: what's the ip for that as I think I have only your old pizarro one | [19:48] |
billymg: | and without doing the whole < dance it would render the <p> rather than just the text "<p>" | [19:48] |
diana_coman: | jfw: heh, sure; the point is: why do you want to input < and the like? | [19:48] |
billymg: | diana_coman: 192.187.114.50 | [19:48] |
billymg: | wait, no, that's BingoBoingo's box that it lives on but he provided me with another for my dns record. one sec... | [19:49] |
diana_coman: | billymg: hm? seems to work, lol | [19:49] |
billymg: | oh, weird | [19:49] |
diana_coman: | looks | [19:49] |
billymg: | and yeah, it's the correct IP | [19:49] |
billymg: | but when i enter it into my browser it goes to http://bingology.net | [19:50] |
diana_coman: | jfw: btw did you read about feedback ? don't recall if I yet pointed you to it. | [19:50] |
jfw: | oh hey, I did already have a case of less-thans, in the line of http://fixpoint.welshcomputing.com/2019/misadventures-in-mp-wp-setup-the-sad-work-in-progress-post/?b=I\%20guess\%20the\%20start&e=block#select | [19:50] |
diana_coman: | billymg: so inside <code> you mean? | [19:52] |
billymg: | yes, correct | [19:52] |
diana_coman: | jfw: do you usually write with < and the like or how come? | [19:53] |
BingoBoingo: | billymg: The bare ip in the address bar doesn't give apache enough information to know it should serve your site. Gotta send a name with the request | [19:54] |
diana_coman: | billymg: I think I tend to <cite>/<blockquote> code though yes, code is ~always a pain in posts/text (and I hate it too, because it IS text ffs, but can't say I have a solution that I'm happy with, really) | [19:54] |
jfw: | I did read the d-k rec thread and linked article when first posted, certainly some of the meaning escaped me but yes, what appears a problem might be the world giving a clue that you're being stupid | [19:56] |
jfw: | "do you usually write with < and the like" - no, and I haven't done that much writing in html really; if I end up with < in plain text and need to post in html, I can run it through 'sed' to escape them | [19:58] |
billymg: | diana_coman: yeah, it's definitely a pain and aside from typing out the entity code per character i don't have a better solution either | [19:58] |
jfw: | but was this a separate question from why change the footnote delimiter? | [19:58] |
diana_coman: | jfw: hence why it's always worth at the very least to first consider clearly what the proposed problem is; I'm still not entirely clear here as to what the problem(s?) you 4 suggest are exactly. | [19:59] |
diana_coman: | jfw: the main idea is that 1. the software should make it easy for the user to do what *they want* 2. including idiotic stuff if they are idiots | [20:00] |
diana_coman: | that's I suppose the main surprise in a sense: the trouble with protecting user against own idiocy is that the protection might protect idiots but it gets in the way of non-idiots most of the time | [20:00] |
diana_coman: | ie working with the user it's certainly preferable to write4 (or whatever delimiters you prefer eg ^^ ^^) rather than <fn> </fn> | [20:01] |
diana_coman: | and writing &lg is also not exactly what I'd ever want as a user, really | [20:03] |
diana_coman: | that being said, on one hand on your very own blog you can of course do exactly and entirely *whatever you want* | [20:03] |
diana_coman: | and on the other hand, at least from my point of view, different people can well have different preferences, sure | [20:03] |
jfw: | Needing < to input a less-than is not my doing, it's html syntax, if that was unclear | [20:04] |
diana_coman: | but I'd say it's at the *very least* worth giving a good thought to the alternative. | [20:04] |
diana_coman: | jfw: no, I know. | [20:04] |
diana_coman: | let me see now if I can in the end identify the various problems proposed: | [20:10] |
diana_coman: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008478 - clash of5 delimiters with Lisp, 1. | [20:10] |
ossabot: | Logged on 2019-11-01 19:45:00 jfw: That if I used6, Lisp code would be a pain. | [20:10] |
diana_coman: | http://ossasepia.com/2020/04/20/ossasepia-logs-for-01-Nov-2019#1008485 - html code is a pain to display, 2. | [20:12] |
ossabot: | Logged on 2019-11-01 19:47:07 billymg: diana_coman: can't speak for others but i ran into that when i was displaying some html code in a post http://billymg.com/2019/08/mp-wp-automated-testing-proposal-and-vpatch/ | [20:12] |
diana_coman: | jfw: re injecting html, that hm, if someone can plug whatever code into your *editor* page, it's already too late to protect against injection really. | [20:13] |
diana_coman: | whaack's problem selecting elements inside an html tag with the b&e mechanism, 3. | [20:14] |
diana_coman: | did I miss anything? jfw billymg whaack ? | [20:15] |
diana_coman: | lobbes: ^ ? | [20:15] |
lobbes: | was about to respond to earlier ping, but that's all the info I have | [20:15] |
lobbes: | re: #3 that is | [20:15] |
jfw: | 2 was not among the issues I brought up, fwiw. And yes, the editor thing appears to be more involved than you've described there | [20:15] |
jfw: | (it's the only one I see as a bug really) | [20:16] |
lobbes: | (only thing I encountered was #3, and even that only last night. I have 0 knowledge of 1, 2) | [20:16] |
diana_coman: | jfw: help me here: what is the bug you see? | [20:16] |
jfw: | ok, so you want to display literal html code ala <p>. You write it as <p> , yes it's a pain, but it works | [20:17] |
jfw: | But if you save a draft and redisplay the editor, it shows up in the text area as <p> - not what you typed. | [20:18] |
jfw: | clearer? | [20:18] |
diana_coman: | jfw: doesn't it work within <cite> or <blockquote> ? because code anyway doesn't quite work as plain text/outside of this ie it's not *just* those bits. | [20:18] |
diana_coman: | jfw: I suppose it's one of those: choose your pain; just choose wisely there. | [20:19] |
jfw: | It would be the same inside any other tag as I understand it | [20:19] |
diana_coman: | goes in search of a post-with-code | [20:19] |
diana_coman: | damn it all, easier to test directly. | [20:20] |
diana_coman: | jfw: just tested here and inside <blockquote> it shows as < fine? | [20:22] |
diana_coman: | lettuce see the rest | [20:22] |
jfw: | did you navigate out then back in to the editor? just clicking save might not trigger a re-render | [20:23] |
diana_coman: | goes to try it | [20:24] |
diana_coman: | jfw: hm, I did and still can't see it; mind putting a paste on paste.deedbot with an example so I know I'm testing exactly what you're having trouble with there | [20:25] |
jfw: | will do, can I test with a draft on younghands (as mine is patched)? | [20:26] |
diana_coman: | jfw: sure, why not | [20:26] |
billymg: | diana_coman: steps to reproduce: 1) create a new post, include some encoded html character, e.g. < 2) save post, 3) reload post edit page, 4) the < you previously saved will render as a < in the editor text area, so a subsequent save inserts the < into the db, not the < you had before | [20:26] |
diana_coman: | billymg: did that and...nope? | [20:26] |
billymg: | damn | [20:26] |
diana_coman: | but indeed, inside <cite> or <blockquote> or <code>, not just plain | [20:27] |
diana_coman: | why would you want it inside plain text since it's ..not? | [20:27] |
billymg: | yeah, same for me, inside code | [20:27] |
billymg: | goes to try again | [20:27] |
billymg: | inside <code>* | [20:27] |
diana_coman: | I've put all 3 since I'm at it,lolz | [20:27] |
diana_coman: | ie one of each | [20:27] |
diana_coman: | anyways, I'll wait for pastes from you 2 and I'll try them | [20:27] |
billymg: | diana_coman: ok, i loaded up http://billymg.com/2019/08/mp-wp-automated-testing-proposal-and-vpatch/ in the mp-wp edit screen and indeed the text area contained "<p>" instead of my originally saved "<p>" | [20:29] |
billymg: | so for you when you navigate away / hard reload it preserves the "<p>" ? | [20:30] |
jfw: | diana_coman: http://paste.deedbot.org/?id=DpUR | [20:30] |
billymg: | ^ that is consistent with what i am seeing as well | [20:31] |
diana_coman: | jfw: does that happen on younghands.club? | [20:31] |
jfw: | yes. | [20:31] |
jfw: | is it possible you did < without semicolon like you typed here? | [20:32] |
diana_coman: | billymg: I start suspecting it's something you broke with the latest /trimming patches really; iirc on ossasepia I have the original mpwp, ie not pressed to last vpatch | [20:32] |
diana_coman: | and that might be | [20:32] |
diana_coman: | jfw: no, I pasted exactly what you gave me there and it stays as you gave it | [20:32] |
jfw: | interesting! I also have the trimming patches | [20:33] |
billymg: | aha | [20:33] |
billymg: | ok, let me go look at the patch and see if i accidentally ripped out a htmlentities() or htmlspecialchars() call somewhere | [20:34] |
billymg: | ah, yes, found it | [20:36] |
diana_coman: | heh | [20:36] |
billymg: | "@param bool Whether or not the should pass through htmlspecialchars(). Default false." | [20:37] |
billymg: | although it's not immediately apparent to me why you wouldn't want passed through htmlspecialchars() regardless | [20:37] |
billymg: | diana_coman: before i spin up another local copy from the previous patch to test myself, was it in the html editor box that you tested behavior just now, or the "rich" editor box? | [20:39] |
diana_coman: | billymg: html editor box | [20:39] |
billymg: | ok cool | [20:39] |
billymg: | based on what i'm seeing it's hopefully just a flag to set to true somewhere | [20:40] |
billymg: | but will need to dig a bit more | [20:40] |
billymg: | sorry all! | [20:40] |
diana_coman: | jfw: thank you. | [20:41] |
jfw: | yw! so neither of us were entirely crazy. | [20:42] |
diana_coman: | now let's see, of the original 1,2,3 problems, is there anything left? | [20:42] |
diana_coman: | 1 is a matter of delimiters; 2 is apparently not in the original mpwp; 3 is a matter of citing properly the context rather than term inside link. | [20:43] |
diana_coman: | did I miss anything? | [20:43] |
diana_coman: | jfw: usually nobody's entirely crazy *to start with*; it takes a while :P | [20:44] |
jfw: | I am satisfied with using [[ ]] or something for footnotes because MP says so, though perhaps not entirely schooled on what's dumb about <fn> | [20:44] |
diana_coman: | jfw: essentially it's more you molding to the machine than the other way around really. | [20:45] |
diana_coman: | billymg: not a problem, happy we uncovered it at least. | [20:46] |
billymg: | yeah, i appreciate all the "testing in production" it received | [20:46] |
billymg: | also i see the mistake now, it'll be a one-line fix | [20:46] |
diana_coman: | jfw: one of those days I wanted to ask you re machines but atm I gather you rather have to focus on the writing, isn't it? | [20:47] |
jfw: | quite. | [20:47] |
whaack: | diana_coman: there's also the faulty span tags i mentioned in my post. and there's another issue that wasn't mentioned yet with the code posted for linking back to the excerpts in pingbacks that i will post | [21:09] |
whaack: | a fix to shortly | [21:09] |
whaack: | ^ the problem/fix | [23:26] |
Comments feed: RSS 2.0