Show Idle (>14 d.) Chans


← 2019-10-31 | 2019-11-02 →
00:01 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 "&lt;p&gt;" to render a <p> tag it will get saved as such in mysql. but when you edit the post, and the same "&lt;p&gt;" is pulled out of the db and put into the text area, it will render as "<p>"
00:01 billymg so saving again saves the "<p>", not the "&lt;p&gt;" you originally entered
00:14 whaack billymg: yup, that is my understanding of the problem
00:15 billymg this might be helpful https://www.php.net/manual/en/function.htmlentities.php
00:18 billymg running the db output through that before inserting into the <textarea> converts everything to html entities. so tags you intended as tags, e.g. <p>, go into the <textarea> as &lt;p&gt; (rendered as the desired <p>), and tags you intended to escape, e.g. &lt;p&gt;, go into the <textarea> as &amp;lt;p&amp;gt; (rendered as the desired &lt;p&gt;)
00:20 billymg would certainly be a useful patch if you have the time to test further and ensure it works as expected without side effects
00:27 billymg also provided diana_coman finds it a worthwhile use of your time i should say
00:28 whaack billymg: ^ hah that is always a given. yes it seems like a good idea at first pass
~ 16 minutes ~
00:45 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
00:45 whaack ith b=trilema you will break the anchor tag instead.
00:45 ossabot (trilema) 2019-10-31 lobbes: in other weird, I found an odd (albeit edge case) bug in the new blog selection mechanism. If you do a select that begins with "http" (e.g. "?b=http&e=#select") it will mangle the selected link in the post itself when rendered
00:52 whaack the other weird about the new selection mechanism is that when you leave no value for e, there is no closing </span> being added anywhere. afaik all browsers handle this by 'closing' the <span ..> tag by putting a </span> before either the next (1) the opening tag of a block element (2) the closing tag of any element that the <span ..> opening tag is nested in
~ 19 minutes ~
01:11 lobbes whaack: aa interesting. I didn't know that about the no value for e; now that weird makes sense at least
01:11 lobbes and nifty. I look forward to your solution (possibly this was in the #o logz already and I missed it)
01:19 whaack lobbes: there is no solution proposed yet. the first two fixes that came to mind are to (1) make sure that you are not inside of an anchor tag when putting in the opening <span> and (2) to make sure you put the </span> explicitly if you hit one of the above scenarios before finding a match for the "e" value
~ 1 hours 35 minutes ~
02:54 jfw http://logs.ossasepia.com/log/ossasepia/2019-10-31#1008349 - I had also encountered this
02:54 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.
02:56 jfw (per selection, implications are worse than noted here so far - editor page can be html-injected)
03:02 jfw re http://logs.ossasepia.com/log/ossasepia/2019-10-31#1008357 I'd say the problem isn't html doing what it's supposed to do i.e. displaying &lt; 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.
03:02 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 "&lt;p&gt;" to render a <p> tag it will get saved as such in mysql. but when you edit the post, and the same "&lt;p&gt;" is pulled out of the db and put into the text area, it will render as "<p>"
~ 25 minutes ~
03:27 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
03:33 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.
03: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.
03:49 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.
03:51 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)
04:00 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.
04:07 * whaack to sleep
~ 5 hours 20 minutes ~
09:27 spyked http://logs.ossasepia.com/log/ossasepia/2019-10-29#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?
09:27 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.
09:33 spyked http://logs.ossasepia.com/log/ossasepia/2019-10-31#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
09:33 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.
~ 41 minutes ~
10:15 diana_coman http://logs.ossasepia.com/log/ossasepia/2019-11-01#1008378 - what is a "draft patch"?
10:15 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.
10:15 diana_coman such a nice #o log to wake up to!
10:17 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.
10:18 diana_coman whaack: well done there; for the moment I'd say get out first what you had for this week anyway
10:19 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
10:19 diana_coman and then billymg will pick apart that picking apart so hopefully the end result is fully tested.
10:22 diana_coman spyked: + there is that important part "you don't have to do it yourself!!"
10:22 diana_coman make it out of whatever shit you find, pre-packaged solutions tech or food-wise.
10:29 diana_coman dorion: why u not in #t ? add it to your autojoin and don't be silly.
~ 16 minutes ~
10:45 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.
10:46 spyked imho useful to make the distinction between "complexity for fast consumption" and "complexity that gives a huge productivity boost"
10:46 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 perfor
10:46 diana_coman possibly; at the other extreme, the copy/paste/autogen horrors are anything *other* than overengineering, lol.
~ 23 minutes ~
11:09 diana_coman spyked: heh, yes, the two types of complexity mirroring the two types of simplicity
11:09 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.
11:10 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)
~ 25 minutes ~
11:36 diana_coman whaack lobbes jfw is this all about putting markup in the text or is there more to it (if yes, what)?
11:36 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.
11:37 diana_coman whaack: also, do delete those test-trackbacks, no need to actually keep them in there.
11:38 diana_coman and worse, they obscure actual comments.
~ 1 hours 51 minutes ~
13:29 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.
13:30 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
13:31 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?
13:32 whaack diana_coman: http://logs.ossasepia.com/log/ossasepia/2019-10-31#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
13:32 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 s
13:33 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.
13:36 whaack kk
~ 3 hours 4 minutes ~
16:40 dorion http://logs.ossasepia.com/log/ossasepia/2019-11-01#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'.
16:40 ossabot Logged on 2019-11-01 06:32:40 spyked: http://logs.ossasepia.com/log/ossasepia/2019-10-29#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?
16:42 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.
16:42 ossabot (trilema) 2016-09-14 asciilifeform: 'the only intuitive notation is the tit' or how did it go.
16:45 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
16:45 dorion to the suckers on the public markets.
16:45 diana_coman 'point and click' aka click-and-cluck
16:46 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"
16:49 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.
16:49 dorion lol at click-and-cluck
16:50 dorion more technically, "I'll import entire library rather than re-implement the one function I 'need'". and then the 'library' imports libraries.
16:50 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.
16:52 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.
16:55 dorion http://logs.ossasepia.com/log/ossasepia/2019-11-01#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.
16:55 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.
16:55 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
16:57 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.
16:57 diana_coman for that matter hm, whaack , u also not in #t ?
16:58 whaack diana_coman: nope i am not, I will change that now
16:59 dorion diana_coman right, letting go of the old habits, aligning to present.
17:00 diana_coman good.
~ 2 hours 39 minutes ~
19:39 diana_coman sorry people for the spew from feedbot.
~ 43 minutes ~
20:23 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
20:25 diana_coman whaack: no problem.
20:27 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.
20:27 ossabot (trilema) 2019-11-01 diana_coman: just 1. took out content from archives.php 2. increased limit at per page
~ 15 minutes ~
20:43 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.
~ 29 minutes ~
21:12 jfw http://logs.ossasepia.com/log/ossasepia/2019-11-01#1008388 - vpatch I made to capture my local change, not signed as yet.
21:12 ossabot Logged on 2019-11-01 07:19:44 diana_coman: http://logs.ossasepia.com/log/ossasepia/2019-11-01#1008378 - what is a "draft patch"?
21:18 jfw http://logs.ossasepia.com/log/ossasepia/2019-11-01#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?
21:18 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)?
21:18 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>
21:21 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?
21:27 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 &lt;p&gt; 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.
21:29 jfw (perhaps deeper: is there a WordPress manual somewhere that I missed?)
21:30 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
21:32 jfw oh oh, I think you're right.
21:33 whaack jfw: mp says don't do footnotes with <fn> </fn>, not that you shouldn't use any html tags at all
21:34 jfw The selection bugs / operator errors are not the thing that I looked deeper at
21:34 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.
21:36 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?
21:39 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.
21:42 whaack diana_coman: I answered you incorrectly for http://logs.ossasepia.com/log/ossasepia/2019-11-01#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://logs.ossasepia.com/log/ossasepia/2019-10-31#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
21:42 whaack dd it now as a comment.
21:42 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?
21:42 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.
~ 15 minutes ~
21:58 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
22:00 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.
22:10 billymg jfw: html tags are fine and meant to be used. http://logs.ossasepia.com/log/ossasepia/2019-10-31#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>)
22:10 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 "&lt;p&gt;" to render a <p> tag it will get saved as such in mysql. but when you edit the post, and the same "&lt;p&gt;" is pulled out of the db and put into the text area, it will render as "<p>"
22:14 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
22:16 billymg http://logs.ossasepia.com/log/ossasepia/2019-11-01#1008377 << no reason in particular, it was just the first method i stumbled upon that seemed to achieve the desired result
22:16 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
22:17 billymg http://logs.ossasepia.com/log/ossasepia/2019-11-01#1008394 << yes, i could include a test for that in the next mp-wp-tests patch
22:17 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.
22:21 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 from (( )) to <fn> </fn> (then cut my hand on the scythe because the regex code didn't quote the /)
22:22 billymg http://logs.ossasepia.com/log/ossasepia/2019-11-01#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
22:22 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?
22:23 billymg jfw: ah, i see, i must have missed that part of the thread
22:26 * whaack bbl
22:35 diana_coman http://logs.ossasepia.com/log/ossasepia/2019-11-01#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.
22:35 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 from (( )) to <fn> </fn> (then cut my hand on the scythe because the regex code didn't quote the /)
22:40 jfw That if I used (( )), Lisp code would be a pain.
22:40 diana_coman jfw: re &lt 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)
22:40 diana_coman jfw: I get that but just change that to some other delimiters, no?
22:41 jfw You never needed to use a less-than sign, or illustrate a tag?
22:41 diana_coman and yes, code is ~always in a pain in text, I agree.
22:41 diana_coman I don't, no; give me an example where you have to.
22:41 diana_coman (I know you *can* do it; I just haven't yet met the case where I *have to* do it)
22:42 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/
22:42 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?
22:42 billymg this line: "const postBody = '<p>When in the course of human events..."
22:43 diana_coman billymg: what's the ip for that as I think I have only your old pizarro one
22:43 billymg and without doing the whole &lt; dance it would render the <p> rather than just the text "<p>"
22:43 diana_coman jfw: heh, sure; the point is: why do you want to input &lt and the like?
22:43 billymg diana_coman: 192.187.114.50
22:44 billymg wait, no, that's BingoBoingo's box that it lives on but he provided me with another for my dns record. one sec...
22:44 diana_coman billymg: hm? seems to work, lol
22:44 billymg oh, weird
22:44 * diana_coman looks
22:45 billymg and yeah, it's the correct IP
22:45 billymg but when i enter it into my browser it goes to http://bingology.net
22:45 diana_coman jfw: btw did you read about feedback ? don't recall if I yet pointed you to it.
22:46 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
22:47 diana_coman billymg: so inside <code> you mean?
22:47 billymg yes, correct
22:48 diana_coman jfw: do you usually write with &lt and the like or how come?
22:49 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
22:49 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)
22:51 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
22:53 jfw "do you usually write with &lt 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
22:53 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
22:54 jfw but was this a separate question from why change the footnote delimiter?
22:54 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.
22:55 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
22:56 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
22:56 diana_coman ie working with the user it's certainly preferable to write (( )) (or whatever delimiters you prefer eg ^^ ^^) rather than <fn> </fn>
22:58 diana_coman and writing &lg is also not exactly what I'd ever want as a user, really
22:58 diana_coman that being said, on one hand on your very own blog you can of course do exactly and entirely *whatever you want*
22:59 diana_coman and on the other hand, at least from my point of view, different people can well have different preferences, sure
22:59 jfw Needing &lt; to input a less-than is not my doing, it's html syntax, if that was unclear
22:59 diana_coman but I'd say it's at the *very least* worth giving a good thought to the alternative.
23:00 diana_coman jfw: no, I know.
23:05 diana_coman let me see now if I can in the end identify the various problems proposed:
23:06 diana_coman http://logs.ossasepia.com/log/ossasepia/2019-11-01#1008478 - clash of (()) delimiters with Lisp, 1.
23:06 ossabot Logged on 2019-11-01 19:45:00 jfw: That if I used (( )), Lisp code would be a pain.
23:07 diana_coman http://logs.ossasepia.com/log/ossasepia/2019-11-01#1008485 - html code is a pain to display, 2.
23:07 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/
23:08 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.
23:09 diana_coman whaack's problem selecting elements inside an html tag with the b&e mechanism, 3.
23:10 diana_coman did I miss anything? jfw billymg whaack ?
23:10 diana_coman lobbes: ^ ?
23:10 * lobbes was about to respond to earlier ping, but that's all the info I have
23:10 lobbes re: #3 that is
23:11 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
23:11 jfw (it's the only one I see as a bug really)
23:11 lobbes (only thing I encountered was #3, and even that only last night. I have 0 knowledge of 1, 2)
23:11 diana_coman jfw: help me here: what is the bug you see?
23:12 jfw ok, so you want to display literal html code ala <p>. You write it as &lt;p&gt; , yes it's a pain, but it works
23:13 jfw But if you save a draft and redisplay the editor, it shows up in the text area as <p> - not what you typed.
23:13 jfw clearer?
23:13 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.
23:14 diana_coman jfw: I suppose it's one of those: choose your pain; just choose wisely there.
23:14 jfw It would be the same inside any other tag as I understand it
23:14 * diana_coman goes in search of a post-with-code
23:16 diana_coman damn it all, easier to test directly.
23:18 diana_coman jfw: just tested here and inside <blockquote> it shows as &lt fine?
23:18 diana_coman lettuce see the rest
23:19 jfw did you navigate out then back in to the editor? just clicking save might not trigger a re-render
23:19 * diana_coman goes to try it
23:21 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
23:21 jfw will do, can I test with a draft on younghands (as mine is patched)?
23:21 diana_coman jfw: sure, why not
23:21 billymg diana_coman: steps to reproduce: 1) create a new post, include some encoded html character, e.g. &lt; 2) save post, 3) reload post edit page, 4) the &lt; you previously saved will render as a < in the editor text area, so a subsequent save inserts the < into the db, not the &lt; you had before
23:21 diana_coman billymg: did that and...nope?
23:22 billymg damn
23:22 diana_coman but indeed, inside <cite> or <blockquote> or <code>, not just plain
23:22 diana_coman why would you want it inside plain text since it's ..not?
23:22 billymg yeah, same for me, inside code
23:22 * billymg goes to try again
23:22 billymg inside <code>*
23:22 diana_coman I've put all 3 since I'm at it,lolz
23:22 diana_coman ie one of each
23:23 diana_coman anyways, I'll wait for pastes from you 2 and I'll try them
23:25 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 "&lt;p&gt;"
23:25 billymg so for you when you navigate away / hard reload it preserves the "&lt;p&gt;" ?
23:26 jfw diana_coman: http://paste.deedbot.org/?id=DpUR
23:26 billymg ^ that is consistent with what i am seeing as well
23:27 diana_coman jfw: does that happen on younghands.club?
23:27 jfw yes.
23:27 jfw is it possible you did &lt without semicolon like you typed here?
23:27 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
23:27 diana_coman and that might be
23:28 diana_coman jfw: no, I pasted exactly what you gave me there and it stays as you gave it
23:28 jfw interesting! I also have the trimming patches
23:28 billymg aha
23:29 billymg ok, let me go look at the patch and see if i accidentally ripped out a htmlentities() or htmlspecialchars() call somewhere
23:31 billymg ah, yes, found it
23:32 diana_coman heh
23:32 billymg "@param bool $richedit Whether or not the $content should pass through htmlspecialchars(). Default false."
23:33 billymg although it's not immediately apparent to me why you wouldn't want $content passed through htmlspecialchars() regardless
23:34 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?
23:34 diana_coman billymg: html editor box
23:34 billymg ok cool
23:35 billymg based on what i'm seeing it's hopefully just a flag to set to true somewhere
23:35 billymg but will need to dig a bit more
23:36 billymg sorry all!
23:37 diana_coman jfw: thank you.
23:37 jfw yw! so neither of us were entirely crazy.
23:38 diana_coman now let's see, of the original 1,2,3 problems, is there anything left?
23:38 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.
23:38 diana_coman did I miss anything?
23:39 diana_coman jfw: usually nobody's entirely crazy *to start with*; it takes a while :P
23:39 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>
23:40 diana_coman jfw: essentially it's more you molding to the machine than the other way around really.
23:41 diana_coman billymg: not a problem, happy we uncovered it at least.
23:41 billymg yeah, i appreciate all the "testing in production" it received
23:42 billymg also i see the mistake now, it'll be a one-line fix
23:42 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?
23:42 jfw quite.
← 2019-10-31 | 2019-11-02 →